@almadar/agent 1.6.4 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/LICENSE +21 -72
  2. package/README.md +25 -0
  3. package/dist/agent/event-budget.d.ts +28 -0
  4. package/dist/agent/experimental/hitl-v2.d.ts +161 -0
  5. package/dist/agent/experimental/hitl-workflow-integration.d.ts +182 -0
  6. package/dist/agent/index.d.ts +14 -13
  7. package/dist/agent/index.js.map +1 -1
  8. package/dist/agent/interrupt-config.d.ts +51 -0
  9. package/dist/agent/session-manager.d.ts +204 -0
  10. package/dist/agent/skill-agent.d.ts +182 -0
  11. package/dist/agent/workflow-middleware.d.ts +63 -0
  12. package/dist/agent/workflow-tool-wrapper.d.ts +87 -0
  13. package/dist/{api-types-CXrq-fts.d.ts → api-types.d.ts} +85 -51
  14. package/dist/context/compaction.d.ts +191 -0
  15. package/dist/context-compaction.d.ts +55 -0
  16. package/dist/evals/online-sampling.d.ts +114 -0
  17. package/dist/evals/utils/compact-orbital.d.ts +100 -0
  18. package/dist/event-transformer/event-transformer.d.ts +120 -0
  19. package/dist/event-transformer/index.d.ts +4 -122
  20. package/dist/events.d.ts +85 -0
  21. package/dist/index.d.ts +58 -1678
  22. package/dist/index.js +39 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/memory/MemoryManager.d.ts +243 -0
  25. package/dist/memory/PreferenceLearner.d.ts +59 -0
  26. package/dist/memory/agentic-search.d.ts +116 -0
  27. package/dist/memory/index.d.ts +14 -0
  28. package/dist/memory/memory-orbital.d.ts +66 -0
  29. package/dist/memory/types.d.ts +143 -0
  30. package/dist/metrics.d.ts +77 -0
  31. package/dist/multi-user.d.ts +155 -0
  32. package/dist/observability/index.d.ts +14 -0
  33. package/dist/observability/langsmith-integration.d.ts +203 -0
  34. package/dist/observability.d.ts +196 -0
  35. package/dist/orbitals/archive/sanitize.d.ts +24 -0
  36. package/dist/orbitals/batch/batch-generator.d.ts +41 -0
  37. package/dist/orbitals/batch/concurrency.d.ts +54 -0
  38. package/dist/orbitals/batch/index.d.ts +14 -0
  39. package/dist/orbitals/batch/prompt-assembler.d.ts +92 -0
  40. package/dist/orbitals/batch/types.d.ts +103 -0
  41. package/dist/orbitals/cache/index.d.ts +11 -0
  42. package/dist/orbitals/cache/orbital-fingerprint.d.ts +37 -0
  43. package/dist/orbitals/cache/prompt-assembler.d.ts +65 -0
  44. package/dist/orbitals/cache/structural-templates.d.ts +33 -0
  45. package/dist/orbitals/combiner/index.d.ts +102 -0
  46. package/dist/orbitals/domain-language/index.d.ts +9 -0
  47. package/dist/orbitals/domain-language/prompts/index.d.ts +11 -0
  48. package/dist/orbitals/domain-language/prompts/odl-examples.d.ts +8 -0
  49. package/dist/orbitals/domain-language/prompts/odl-patterns.d.ts +8 -0
  50. package/dist/orbitals/domain-language/prompts/odl-syntax.d.ts +8 -0
  51. package/dist/orbitals/domain-language/prompts/odl-to-schema.d.ts +8 -0
  52. package/dist/orbitals/generation/index.d.ts +10 -0
  53. package/dist/orbitals/generation/orbital-generator.d.ts +120 -0
  54. package/dist/orbitals/shared/constants.d.ts +65 -0
  55. package/dist/orbitals/shared/index.d.ts +11 -0
  56. package/dist/orbitals/shared/types.d.ts +187 -0
  57. package/dist/orbitals/shared/utils.d.ts +97 -0
  58. package/dist/orchestration/complexity-classifier.d.ts +38 -0
  59. package/dist/orchestration/fixing-orchestrator.d.ts +53 -0
  60. package/dist/orchestration/index.d.ts +31 -0
  61. package/dist/orchestration/provider-router.d.ts +45 -0
  62. package/dist/{firestore-checkpointer-CkNKXoun.d.ts → persistence/firestore-checkpointer.d.ts} +13 -58
  63. package/dist/persistence/firestore-session-store.d.ts +75 -0
  64. package/dist/persistence/firestore-store.d.ts +86 -0
  65. package/dist/persistence/index.d.ts +7 -198
  66. package/dist/persistence/memory-backend.d.ts +33 -0
  67. package/dist/persistence/types.d.ts +40 -0
  68. package/dist/security/audit-log.d.ts +44 -0
  69. package/dist/state-sync.d.ts +171 -0
  70. package/dist/subagents.d.ts +38 -0
  71. package/dist/tools/combine-schemas.d.ts +154 -0
  72. package/dist/tools/composition.d.ts +119 -0
  73. package/dist/{orbital-subagent-BdFuf77p.d.ts → tools/domain-orbital.d.ts} +22 -461
  74. package/dist/tools/execute.d.ts +38 -0
  75. package/dist/tools/finish-task.d.ts +56 -0
  76. package/dist/tools/generate-schema.d.ts +53 -0
  77. package/dist/tools/github.d.ts +297 -0
  78. package/dist/tools/index.d.ts +1318 -8
  79. package/dist/tools/orbital-batch-subagent.d.ts +85 -0
  80. package/dist/tools/orbital-subagent.d.ts +454 -0
  81. package/dist/tools/orchestrated-fixing.d.ts +74 -0
  82. package/dist/tools/orchestrated-generation.d.ts +75 -0
  83. package/dist/tools/sandbox-executor.d.ts +31 -0
  84. package/dist/tools/schema-chunking.d.ts +117 -0
  85. package/dist/tools/trait-subagent.d.ts +179 -0
  86. package/dist/tools/validate-schema.d.ts +17 -0
  87. package/dist/types.d.ts +14 -17
  88. package/dist/utils/safety/capability-token.d.ts +50 -0
  89. package/dist/utils/safety/circuit-breaker.d.ts +71 -0
  90. package/dist/utils/safety/index.d.ts +19 -0
  91. package/dist/utils/safety/rate-limiter.d.ts +39 -0
  92. package/dist/utils/safety/threshold-auth.d.ts +70 -0
  93. package/dist/workspace/git-client.d.ts +51 -0
  94. package/dist/workspace/index.d.ts +29 -346
  95. package/dist/workspace/index.js +39 -0
  96. package/dist/workspace/index.js.map +1 -1
  97. package/dist/workspace/memory-files.d.ts +31 -0
  98. package/dist/workspace/sink-manager.d.ts +26 -0
  99. package/dist/workspace/sinks/firestore-sink.d.ts +41 -0
  100. package/dist/workspace/sinks/git-sink.d.ts +47 -0
  101. package/dist/workspace/sinks/index.d.ts +9 -0
  102. package/dist/workspace/templates.d.ts +32 -0
  103. package/dist/workspace/types.d.ts +86 -0
  104. package/dist/workspace/workspace-manager.d.ts +57 -0
  105. package/package.json +12 -10
  106. package/dist/index-DW3F-Ihx.d.ts +0 -2501
  107. package/dist/index-DZn69no8.d.ts +0 -1014
@@ -1,2501 +0,0 @@
1
- import { S as SubagentEventCallback$1, O as OrbitalCompleteCallback, D as DomainOrbitalEventCallback, a as DomainOrbitalCompleteCallback } from './orbital-subagent-BdFuf77p.js';
2
- import * as _langchain_core_tools from '@langchain/core/tools';
3
- import * as zod from 'zod';
4
- import { z } from 'zod';
5
- import { Trait, OrbitalDefinition, FullOrbitalUnit } from '@almadar/core/types';
6
- import { S as SSEEventType } from './api-types-CXrq-fts.js';
7
- import { LLMProvider } from '@almadar/llm';
8
- import { OrbitalSchema } from '@almadar/core';
9
-
10
- type TraitEventCallback = (traitName: string, traitIndex: number, totalTraits: number, event: {
11
- type: Exclude<SSEEventType, 'subagent_event'>;
12
- data: Record<string, unknown>;
13
- timestamp: number;
14
- }) => void;
15
- type TraitCompleteCallback = (trait: Trait, traitName: string, traitIndex: number, totalTraits: number) => void | Promise<void>;
16
- interface TraitSubagentToolOptions {
17
- onTraitEvent?: TraitEventCallback;
18
- onTraitComplete?: TraitCompleteCallback;
19
- }
20
- interface TraitSpec {
21
- name: string;
22
- description: string;
23
- category?: string;
24
- states?: string[];
25
- events?: string[];
26
- requiredFields?: Array<{
27
- name: string;
28
- type: string;
29
- description?: string;
30
- }>;
31
- needsTicks?: boolean;
32
- needsEmit?: boolean;
33
- needsListens?: boolean;
34
- }
35
- /**
36
- * Create a tool for generating custom traits.
37
- * Uses @almadar/llm LLMClient directly.
38
- */
39
- declare function createTraitSubagentTool(options?: TraitSubagentToolOptions): {
40
- tool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
41
- traitSpec: z.ZodObject<{
42
- name: z.ZodString;
43
- description: z.ZodString;
44
- category: z.ZodOptional<z.ZodString>;
45
- states: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46
- events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47
- requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
48
- name: z.ZodString;
49
- type: z.ZodString;
50
- description: z.ZodOptional<z.ZodString>;
51
- }, "strip", z.ZodTypeAny, {
52
- type: string;
53
- name: string;
54
- description?: string | undefined;
55
- }, {
56
- type: string;
57
- name: string;
58
- description?: string | undefined;
59
- }>, "many">>;
60
- needsTicks: z.ZodOptional<z.ZodBoolean>;
61
- needsEmit: z.ZodOptional<z.ZodBoolean>;
62
- needsListens: z.ZodOptional<z.ZodBoolean>;
63
- }, "strip", z.ZodTypeAny, {
64
- name: string;
65
- description: string;
66
- states?: string[] | undefined;
67
- events?: string[] | undefined;
68
- category?: string | undefined;
69
- requiredFields?: {
70
- type: string;
71
- name: string;
72
- description?: string | undefined;
73
- }[] | undefined;
74
- needsTicks?: boolean | undefined;
75
- needsEmit?: boolean | undefined;
76
- needsListens?: boolean | undefined;
77
- }, {
78
- name: string;
79
- description: string;
80
- states?: string[] | undefined;
81
- events?: string[] | undefined;
82
- category?: string | undefined;
83
- requiredFields?: {
84
- type: string;
85
- name: string;
86
- description?: string | undefined;
87
- }[] | undefined;
88
- needsTicks?: boolean | undefined;
89
- needsEmit?: boolean | undefined;
90
- needsListens?: boolean | undefined;
91
- }>;
92
- traitIndex: z.ZodOptional<z.ZodNumber>;
93
- totalTraits: z.ZodOptional<z.ZodNumber>;
94
- }, "strip", z.ZodTypeAny, {
95
- traitSpec: {
96
- name: string;
97
- description: string;
98
- states?: string[] | undefined;
99
- events?: string[] | undefined;
100
- category?: string | undefined;
101
- requiredFields?: {
102
- type: string;
103
- name: string;
104
- description?: string | undefined;
105
- }[] | undefined;
106
- needsTicks?: boolean | undefined;
107
- needsEmit?: boolean | undefined;
108
- needsListens?: boolean | undefined;
109
- };
110
- traitIndex?: number | undefined;
111
- totalTraits?: number | undefined;
112
- }, {
113
- traitSpec: {
114
- name: string;
115
- description: string;
116
- states?: string[] | undefined;
117
- events?: string[] | undefined;
118
- category?: string | undefined;
119
- requiredFields?: {
120
- type: string;
121
- name: string;
122
- description?: string | undefined;
123
- }[] | undefined;
124
- needsTicks?: boolean | undefined;
125
- needsEmit?: boolean | undefined;
126
- needsListens?: boolean | undefined;
127
- };
128
- traitIndex?: number | undefined;
129
- totalTraits?: number | undefined;
130
- }>, {
131
- traitSpec: {
132
- name: string;
133
- description: string;
134
- states?: string[] | undefined;
135
- events?: string[] | undefined;
136
- category?: string | undefined;
137
- requiredFields?: {
138
- type: string;
139
- name: string;
140
- description?: string | undefined;
141
- }[] | undefined;
142
- needsTicks?: boolean | undefined;
143
- needsEmit?: boolean | undefined;
144
- needsListens?: boolean | undefined;
145
- };
146
- traitIndex?: number | undefined;
147
- totalTraits?: number | undefined;
148
- }, {
149
- traitSpec: {
150
- name: string;
151
- description: string;
152
- states?: string[] | undefined;
153
- events?: string[] | undefined;
154
- category?: string | undefined;
155
- requiredFields?: {
156
- type: string;
157
- name: string;
158
- description?: string | undefined;
159
- }[] | undefined;
160
- needsTicks?: boolean | undefined;
161
- needsEmit?: boolean | undefined;
162
- needsListens?: boolean | undefined;
163
- };
164
- traitIndex?: number | undefined;
165
- totalTraits?: number | undefined;
166
- }, string, "generate_custom_trait">;
167
- setEventCallback: (callback: TraitEventCallback) => void;
168
- setTraitCompleteCallback: (callback: TraitCompleteCallback) => void;
169
- };
170
- /**
171
- * Create a helper to wrap trait events into SSE format.
172
- */
173
- declare function createTraitEventWrapper(writeEvent: (event: {
174
- type: string;
175
- timestamp: number;
176
- data: unknown;
177
- }) => void): TraitEventCallback;
178
-
179
- /**
180
- * AuditLog — Hash-chained append-only audit ledger.
181
- *
182
- * TypeScript port of saezbaldo/ic-agi `ic_agi/audit_log.py`.
183
- * See: https://github.com/saezbaldo/ic-agi
184
- *
185
- * Each entry is cryptographically linked to the previous one via
186
- * SHA-256 chaining. Any tampering with historical entries will
187
- * break chain verification.
188
- */
189
- interface AuditEntry {
190
- /** Zero-based position in the chain. */
191
- index: number;
192
- /** Unix epoch seconds — set by append(), never caller-supplied. */
193
- timestamp: number;
194
- /** Arbitrary event data. */
195
- data: Record<string, unknown>;
196
- /** SHA-256 of the previous entry (or GENESIS_HASH for the first entry). */
197
- prevHash: string;
198
- /** SHA-256 of this entry's canonical form. */
199
- entryHash: string;
200
- }
201
- declare class AuditLog {
202
- private entries;
203
- /**
204
- * Append a new entry to the chain.
205
- * The timestamp is set here — callers cannot supply it.
206
- */
207
- append(data: Record<string, unknown>): AuditEntry;
208
- /**
209
- * Verify the integrity of the entire chain.
210
- * Recomputes every entry hash and checks chain linkage.
211
- * Returns false immediately on the first mismatch.
212
- */
213
- verify(): boolean;
214
- /** Return entries, optionally filtered by source, event type, or count limit. */
215
- getEntries(filter?: {
216
- source?: string;
217
- event?: string;
218
- limit?: number;
219
- }): AuditEntry[];
220
- getEntry(index: number): AuditEntry | undefined;
221
- get length(): number;
222
- }
223
-
224
- /**
225
- * Check if a command contains paths outside the workspace.
226
- * Returns an error message if unsafe, null if safe.
227
- */
228
- declare function validateCommandPaths(command: string, workDir: string): string | null;
229
- /**
230
- * Create an execute tool that runs shell commands in the workspace directory.
231
- *
232
- * @param workDir Workspace directory — commands are sandboxed to this path.
233
- * @param auditLog Optional audit chain. When provided, every execution attempt
234
- * (blocked or successful) is recorded with command, gate
235
- * classification, exit code, and output length.
236
- */
237
- declare function createExecuteTool(workDir: string, auditLog?: AuditLog): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
238
- command: z.ZodString;
239
- timeout: z.ZodOptional<z.ZodNumber>;
240
- }, "strip", z.ZodTypeAny, {
241
- command: string;
242
- timeout?: number | undefined;
243
- }, {
244
- command: string;
245
- timeout?: number | undefined;
246
- }>, {
247
- command: string;
248
- timeout?: number | undefined;
249
- }, {
250
- command: string;
251
- timeout?: number | undefined;
252
- }, string, "execute">;
253
-
254
- /**
255
- * Create a validate_schema tool that validates schema.orb in the workspace.
256
- *
257
- * Uses `npx @almadar/cli validate --json` for comprehensive Rust-based validation.
258
- *
259
- * Has a built-in cap of MAX_VALIDATION_ATTEMPTS to prevent
260
- * infinite validation-fix loops.
261
- */
262
- declare function createValidateSchemaTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, {}, {}, string, "validate_schema">;
263
-
264
- /**
265
- * Create a tool that generates KFlow schemas using structured output.
266
- */
267
- declare function createGenerateSchemaTool(): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
268
- userRequest: z.ZodString;
269
- suggestedTraits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
270
- suggestedEntities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
- suggestedPages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
272
- suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
273
- additionalInstructions: z.ZodOptional<z.ZodString>;
274
- existingSchema: z.ZodOptional<z.ZodString>;
275
- }, "strip", z.ZodTypeAny, {
276
- userRequest: string;
277
- suggestedTraits?: string[] | undefined;
278
- suggestedEntities?: string[] | undefined;
279
- suggestedPages?: string[] | undefined;
280
- suggestedPatterns?: string[] | undefined;
281
- additionalInstructions?: string | undefined;
282
- existingSchema?: string | undefined;
283
- }, {
284
- userRequest: string;
285
- suggestedTraits?: string[] | undefined;
286
- suggestedEntities?: string[] | undefined;
287
- suggestedPages?: string[] | undefined;
288
- suggestedPatterns?: string[] | undefined;
289
- additionalInstructions?: string | undefined;
290
- existingSchema?: string | undefined;
291
- }>, {
292
- userRequest: string;
293
- suggestedTraits?: string[] | undefined;
294
- suggestedEntities?: string[] | undefined;
295
- suggestedPages?: string[] | undefined;
296
- suggestedPatterns?: string[] | undefined;
297
- additionalInstructions?: string | undefined;
298
- existingSchema?: string | undefined;
299
- }, {
300
- userRequest: string;
301
- suggestedTraits?: string[] | undefined;
302
- suggestedEntities?: string[] | undefined;
303
- suggestedPages?: string[] | undefined;
304
- suggestedPatterns?: string[] | undefined;
305
- additionalInstructions?: string | undefined;
306
- existingSchema?: string | undefined;
307
- }, string, "generate_schema">;
308
-
309
- /**
310
- * Create a finish_task tool that signals the agent has completed the workflow.
311
- *
312
- * Automatically combines orbitals from:
313
- * 1. .orbitals/ directory (for kflow-orbitals skill)
314
- * 2. domain.txt (for lean skills) - converted to schema via convertDomainToSchema
315
- */
316
- declare function createFinishTaskTool(workDir: string | undefined): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
317
- summary: z.ZodString;
318
- schemaPath: z.ZodOptional<z.ZodString>;
319
- }, "strip", z.ZodTypeAny, {
320
- summary: string;
321
- schemaPath?: string | undefined;
322
- }, {
323
- summary: string;
324
- schemaPath?: string | undefined;
325
- }>, {
326
- summary: string;
327
- schemaPath?: string | undefined;
328
- }, {
329
- summary: string;
330
- schemaPath?: string | undefined;
331
- }, {
332
- success: boolean;
333
- status: string;
334
- message: string;
335
- summary: string;
336
- autoCombined: boolean;
337
- source: "domain" | "orbitals" | undefined;
338
- stats: {
339
- totalOrbitals: number;
340
- totalEntities: number;
341
- totalPages: number;
342
- totalTraits: number;
343
- } | undefined;
344
- validation: {
345
- valid: boolean;
346
- errorCount: number;
347
- warningCount: number;
348
- } | undefined;
349
- designQuality: {
350
- propCorrections: number;
351
- compositionWarnings: string[];
352
- };
353
- schemaPath: string | undefined;
354
- nextAction: string;
355
- }, "finish_task">;
356
-
357
- /**
358
- * Shared Types for Orbital Generation
359
- *
360
- * Common type definitions used by both sequential and batch generation.
361
- *
362
- * @packageDocumentation
363
- */
364
-
365
- /** OrbitalUnit in generation context is always a full OrbitalDefinition */
366
- type OrbitalUnit = OrbitalDefinition;
367
- /**
368
- * A structured log entry from the generation process.
369
- * Used for debugging and observability of subagent reasoning.
370
- */
371
- interface GenerationLog {
372
- /** Timestamp of the log entry */
373
- timestamp: number;
374
- /** Log level */
375
- level: 'info' | 'warn' | 'error' | 'debug';
376
- /** Log message */
377
- message: string;
378
- /** Optional structured data */
379
- data?: Record<string, unknown>;
380
- }
381
- /**
382
- * Extracted requirements from the analysis phase.
383
- * Matches ExtractedRequirements from agents/orchestrator/shared/requirements.ts
384
- */
385
- interface ExtractedRequirements {
386
- /** Entity names to create */
387
- entities?: string[];
388
- /** State names that should exist */
389
- states?: string[];
390
- /** Event/action names */
391
- events?: string[];
392
- /** Business rules (become guards) */
393
- guards?: string[];
394
- /** Page types needed */
395
- pages?: string[];
396
- /** Notifications/side-effects */
397
- effects?: string[];
398
- /** Raw requirement statements */
399
- rawRequirements?: string[];
400
- }
401
- /**
402
- * Common options for all generation modes.
403
- */
404
- interface BaseGenerationOptions {
405
- /** Maximum tokens for generation */
406
- maxTokens?: number;
407
- /** Enable validation after generation */
408
- validate?: boolean;
409
- /** Callback for real-time log streaming */
410
- onLog?: (log: GenerationLog, orbitalName?: string) => void;
411
- /** Optional requirements relevant to this orbital */
412
- requirements?: Partial<ExtractedRequirements>;
413
- }
414
- /**
415
- * Options for single orbital generation.
416
- */
417
- interface OrbitalGenerationOptions extends BaseGenerationOptions {
418
- }
419
- /**
420
- * Token usage statistics.
421
- */
422
- interface TokenUsage {
423
- promptTokens: number;
424
- completionTokens: number;
425
- totalTokens: number;
426
- }
427
- /**
428
- * Validation result for generated orbital.
429
- */
430
- interface ValidationResult {
431
- valid: boolean;
432
- errorCount: number;
433
- warningCount: number;
434
- }
435
- /**
436
- * Result of generating a single orbital.
437
- */
438
- interface OrbitalGenerationResult {
439
- /** Generated full orbital unit */
440
- orbital: FullOrbitalUnit;
441
- /** Fingerprint used for caching */
442
- fingerprint: string;
443
- /** Whether template guidance was used */
444
- usedTemplate: boolean;
445
- /** Token usage */
446
- usage?: TokenUsage;
447
- /** Validation result */
448
- validation?: ValidationResult;
449
- /** Structured logs from generation */
450
- logs: GenerationLog[];
451
- }
452
-
453
- type SubagentEventCallback = (orbitalName: string, orbitalIndex: number, totalOrbitals: number, event: {
454
- type: Exclude<SSEEventType, 'subagent_event'>;
455
- data: Record<string, unknown>;
456
- timestamp: number;
457
- }) => void;
458
- type BatchCompleteCallback = (orbitals: OrbitalDefinition[], batchIndex: number, totalBatches: number) => Promise<void> | void;
459
- interface OrbitalBatchSubagentToolOptions {
460
- onSubagentEvent?: SubagentEventCallback;
461
- onBatchComplete?: BatchCompleteCallback;
462
- requirements?: Partial<ExtractedRequirements>;
463
- provider?: LLMProvider;
464
- model?: string;
465
- workDir?: string;
466
- }
467
- /**
468
- * Create a tool for batch orbital generation with event streaming.
469
- */
470
- declare function createOrbitalBatchSubagentTool(options?: OrbitalBatchSubagentToolOptions): {
471
- tool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
472
- orbitals: z.ZodArray<z.ZodAny, "many">;
473
- options: z.ZodOptional<z.ZodObject<{
474
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["single-call", "parallel-individual", "adaptive"]>>>;
475
- batchSize: z.ZodOptional<z.ZodNumber>;
476
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
477
- preserveRelationships: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
478
- }, "strip", z.ZodTypeAny, {
479
- mode: "single-call" | "parallel-individual" | "adaptive";
480
- preserveRelationships: boolean;
481
- batchSize?: number | undefined;
482
- maxConcurrency?: number | undefined;
483
- }, {
484
- batchSize?: number | undefined;
485
- mode?: "single-call" | "parallel-individual" | "adaptive" | undefined;
486
- preserveRelationships?: boolean | undefined;
487
- maxConcurrency?: number | undefined;
488
- }>>;
489
- }, "strip", z.ZodTypeAny, {
490
- orbitals: any[];
491
- options?: {
492
- mode: "single-call" | "parallel-individual" | "adaptive";
493
- preserveRelationships: boolean;
494
- batchSize?: number | undefined;
495
- maxConcurrency?: number | undefined;
496
- } | undefined;
497
- }, {
498
- orbitals: any[];
499
- options?: {
500
- batchSize?: number | undefined;
501
- mode?: "single-call" | "parallel-individual" | "adaptive" | undefined;
502
- preserveRelationships?: boolean | undefined;
503
- maxConcurrency?: number | undefined;
504
- } | undefined;
505
- }>, {
506
- orbitals: any[];
507
- options?: {
508
- mode: "single-call" | "parallel-individual" | "adaptive";
509
- preserveRelationships: boolean;
510
- batchSize?: number | undefined;
511
- maxConcurrency?: number | undefined;
512
- } | undefined;
513
- }, {
514
- orbitals: any[];
515
- options?: {
516
- batchSize?: number | undefined;
517
- mode?: "single-call" | "parallel-individual" | "adaptive" | undefined;
518
- preserveRelationships?: boolean | undefined;
519
- maxConcurrency?: number | undefined;
520
- } | undefined;
521
- }, string, "generate_orbitals_batch">;
522
- setEventCallback: (callback: SubagentEventCallback) => void;
523
- setBatchCompleteCallback: (callback: BatchCompleteCallback) => void;
524
- };
525
-
526
- /**
527
- * Create the construct_combined_schema tool.
528
- */
529
- declare function createCombineSchemasTool(workDir?: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
530
- orbitals: z.ZodOptional<z.ZodArray<z.ZodObject<{
531
- name: z.ZodString;
532
- description: z.ZodOptional<z.ZodString>;
533
- entity: z.ZodObject<{
534
- name: z.ZodString;
535
- collection: z.ZodOptional<z.ZodString>;
536
- fields: z.ZodArray<z.ZodAny, "many">;
537
- timestamps: z.ZodOptional<z.ZodBoolean>;
538
- }, "strip", z.ZodTypeAny, {
539
- name: string;
540
- fields: any[];
541
- collection?: string | undefined;
542
- timestamps?: boolean | undefined;
543
- }, {
544
- name: string;
545
- fields: any[];
546
- collection?: string | undefined;
547
- timestamps?: boolean | undefined;
548
- }>;
549
- traits: z.ZodArray<z.ZodAny, "many">;
550
- pages: z.ZodArray<z.ZodAny, "many">;
551
- emits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
552
- listens: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
553
- }, "strip", z.ZodTypeAny, {
554
- pages: any[];
555
- traits: any[];
556
- name: string;
557
- entity: {
558
- name: string;
559
- fields: any[];
560
- collection?: string | undefined;
561
- timestamps?: boolean | undefined;
562
- };
563
- description?: string | undefined;
564
- emits?: string[] | undefined;
565
- listens?: any[] | undefined;
566
- }, {
567
- pages: any[];
568
- traits: any[];
569
- name: string;
570
- entity: {
571
- name: string;
572
- fields: any[];
573
- collection?: string | undefined;
574
- timestamps?: boolean | undefined;
575
- };
576
- description?: string | undefined;
577
- emits?: string[] | undefined;
578
- listens?: any[] | undefined;
579
- }>, "many">>;
580
- name: z.ZodOptional<z.ZodString>;
581
- description: z.ZodOptional<z.ZodString>;
582
- version: z.ZodOptional<z.ZodString>;
583
- theme: z.ZodOptional<z.ZodString>;
584
- defaultRoute: z.ZodOptional<z.ZodString>;
585
- validate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
586
- }, "strip", z.ZodTypeAny, {
587
- validate: boolean;
588
- version?: string | undefined;
589
- name?: string | undefined;
590
- description?: string | undefined;
591
- theme?: string | undefined;
592
- orbitals?: {
593
- pages: any[];
594
- traits: any[];
595
- name: string;
596
- entity: {
597
- name: string;
598
- fields: any[];
599
- collection?: string | undefined;
600
- timestamps?: boolean | undefined;
601
- };
602
- description?: string | undefined;
603
- emits?: string[] | undefined;
604
- listens?: any[] | undefined;
605
- }[] | undefined;
606
- defaultRoute?: string | undefined;
607
- }, {
608
- version?: string | undefined;
609
- name?: string | undefined;
610
- description?: string | undefined;
611
- validate?: boolean | undefined;
612
- theme?: string | undefined;
613
- orbitals?: {
614
- pages: any[];
615
- traits: any[];
616
- name: string;
617
- entity: {
618
- name: string;
619
- fields: any[];
620
- collection?: string | undefined;
621
- timestamps?: boolean | undefined;
622
- };
623
- description?: string | undefined;
624
- emits?: string[] | undefined;
625
- listens?: any[] | undefined;
626
- }[] | undefined;
627
- defaultRoute?: string | undefined;
628
- }>, {
629
- validate: boolean;
630
- version?: string | undefined;
631
- name?: string | undefined;
632
- description?: string | undefined;
633
- theme?: string | undefined;
634
- orbitals?: {
635
- pages: any[];
636
- traits: any[];
637
- name: string;
638
- entity: {
639
- name: string;
640
- fields: any[];
641
- collection?: string | undefined;
642
- timestamps?: boolean | undefined;
643
- };
644
- description?: string | undefined;
645
- emits?: string[] | undefined;
646
- listens?: any[] | undefined;
647
- }[] | undefined;
648
- defaultRoute?: string | undefined;
649
- }, {
650
- version?: string | undefined;
651
- name?: string | undefined;
652
- description?: string | undefined;
653
- validate?: boolean | undefined;
654
- theme?: string | undefined;
655
- orbitals?: {
656
- pages: any[];
657
- traits: any[];
658
- name: string;
659
- entity: {
660
- name: string;
661
- fields: any[];
662
- collection?: string | undefined;
663
- timestamps?: boolean | undefined;
664
- };
665
- description?: string | undefined;
666
- emits?: string[] | undefined;
667
- listens?: any[] | undefined;
668
- }[] | undefined;
669
- defaultRoute?: string | undefined;
670
- }, string, "construct_combined_schema">;
671
-
672
- declare function createQuerySchemaStructureTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
673
- file: z.ZodString;
674
- }, "strip", z.ZodTypeAny, {
675
- file: string;
676
- }, {
677
- file: string;
678
- }>, {
679
- file: string;
680
- }, {
681
- file: string;
682
- }, string, "query_schema_structure">;
683
- declare function createExtractChunkTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
684
- file: z.ZodString;
685
- type: z.ZodEnum<["orbital", "trait", "inline-trait"]>;
686
- name: z.ZodString;
687
- parentOrbital: z.ZodOptional<z.ZodString>;
688
- includeTraits: z.ZodDefault<z.ZodBoolean>;
689
- }, "strip", z.ZodTypeAny, {
690
- type: "orbital" | "trait" | "inline-trait";
691
- name: string;
692
- file: string;
693
- includeTraits: boolean;
694
- parentOrbital?: string | undefined;
695
- }, {
696
- type: "orbital" | "trait" | "inline-trait";
697
- name: string;
698
- file: string;
699
- parentOrbital?: string | undefined;
700
- includeTraits?: boolean | undefined;
701
- }>, {
702
- type: "orbital" | "trait" | "inline-trait";
703
- name: string;
704
- file: string;
705
- includeTraits: boolean;
706
- parentOrbital?: string | undefined;
707
- }, {
708
- type: "orbital" | "trait" | "inline-trait";
709
- name: string;
710
- file: string;
711
- parentOrbital?: string | undefined;
712
- includeTraits?: boolean | undefined;
713
- }, string, "extract_chunk">;
714
- declare function createApplyChunkTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
715
- chunkId: z.ZodString;
716
- }, "strip", z.ZodTypeAny, {
717
- chunkId: string;
718
- }, {
719
- chunkId: string;
720
- }>, {
721
- chunkId: string;
722
- }, {
723
- chunkId: string;
724
- }, string, "apply_chunk">;
725
- declare function createSchemaChunkingTools(workDir: string): {
726
- querySchemaStructure: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
727
- file: z.ZodString;
728
- }, "strip", z.ZodTypeAny, {
729
- file: string;
730
- }, {
731
- file: string;
732
- }>, {
733
- file: string;
734
- }, {
735
- file: string;
736
- }, string, "query_schema_structure">;
737
- extractChunk: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
738
- file: z.ZodString;
739
- type: z.ZodEnum<["orbital", "trait", "inline-trait"]>;
740
- name: z.ZodString;
741
- parentOrbital: z.ZodOptional<z.ZodString>;
742
- includeTraits: z.ZodDefault<z.ZodBoolean>;
743
- }, "strip", z.ZodTypeAny, {
744
- type: "orbital" | "trait" | "inline-trait";
745
- name: string;
746
- file: string;
747
- includeTraits: boolean;
748
- parentOrbital?: string | undefined;
749
- }, {
750
- type: "orbital" | "trait" | "inline-trait";
751
- name: string;
752
- file: string;
753
- parentOrbital?: string | undefined;
754
- includeTraits?: boolean | undefined;
755
- }>, {
756
- type: "orbital" | "trait" | "inline-trait";
757
- name: string;
758
- file: string;
759
- includeTraits: boolean;
760
- parentOrbital?: string | undefined;
761
- }, {
762
- type: "orbital" | "trait" | "inline-trait";
763
- name: string;
764
- file: string;
765
- parentOrbital?: string | undefined;
766
- includeTraits?: boolean | undefined;
767
- }, string, "extract_chunk">;
768
- applyChunk: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
769
- chunkId: z.ZodString;
770
- }, "strip", z.ZodTypeAny, {
771
- chunkId: string;
772
- }, {
773
- chunkId: string;
774
- }>, {
775
- chunkId: string;
776
- }, {
777
- chunkId: string;
778
- }, string, "apply_chunk">;
779
- };
780
-
781
- interface OrchestratedGenerationOptions {
782
- /** Skill content for generation guidance */
783
- skillContent: string;
784
- /** Optional: Override verbosity */
785
- verbose?: boolean;
786
- /** Working directory for persisting schema and orbital files */
787
- workDir?: string;
788
- }
789
- interface OrchestratedGenerationResult {
790
- success: boolean;
791
- summary?: string;
792
- orbitalCount?: number;
793
- schemaPath?: string;
794
- complexity?: {
795
- level: 'simple' | 'medium' | 'complex';
796
- orbitalCount: number;
797
- };
798
- provider?: string;
799
- timing?: {
800
- decomposeMs: number;
801
- generateMs: number;
802
- totalMs: number;
803
- };
804
- error?: string;
805
- }
806
- /**
807
- * Create an orchestrated generation tool.
808
- *
809
- * This tool uses complexity-based routing:
810
- * - Decomposes the request with Anthropic
811
- * - Routes to appropriate provider(s) based on complexity
812
- * - Returns the generated schema
813
- */
814
- declare function createOrchestratedGenerationTool(options: OrchestratedGenerationOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
815
- prompt: z.ZodString;
816
- }, "strip", z.ZodTypeAny, {
817
- prompt: string;
818
- }, {
819
- prompt: string;
820
- }>, {
821
- prompt: string;
822
- }, {
823
- prompt: string;
824
- }, OrchestratedGenerationResult, "generate_schema_orchestrated">;
825
- /**
826
- * Create a tool that provides complexity estimation without full generation.
827
- * Useful for UI feedback before starting generation.
828
- */
829
- declare function createComplexityCheckTool(): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
830
- prompt: z.ZodString;
831
- }, "strip", z.ZodTypeAny, {
832
- prompt: string;
833
- }, {
834
- prompt: string;
835
- }>, {
836
- prompt: string;
837
- }, {
838
- prompt: string;
839
- }, {
840
- estimatedOrbitals: number;
841
- confidence: "medium" | "high" | "low";
842
- likelyComplex: boolean;
843
- recommendedStrategy: string;
844
- }, "check_complexity">;
845
-
846
- interface OrchestratedFixingOptions {
847
- /** Skill content for fixing guidance (e.g., kflow-orbital-fixing SKILL.md) */
848
- skillContent: string;
849
- /** Optional: Max retries for fixing */
850
- maxRetries?: number;
851
- /** Optional: Override verbosity */
852
- verbose?: boolean;
853
- }
854
- interface OrchestratedFixingResult {
855
- success: boolean;
856
- schema?: OrbitalSchema;
857
- fixSummary?: {
858
- totalErrors: number;
859
- errorsFixed: number;
860
- errorsRemaining: number;
861
- strategy: string;
862
- stepsExecuted: number;
863
- };
864
- timing?: {
865
- planMs: number;
866
- executeMs: number;
867
- verifyMs: number;
868
- totalMs: number;
869
- };
870
- error?: string;
871
- }
872
- /**
873
- * Create an orchestrated fixing tool.
874
- *
875
- * This tool uses Plan-Then-Execute strategy:
876
- * 1. Analyze errors and create fix plan
877
- * 2. Execute fixes with skill context (multi-provider for complex cases)
878
- * 3. Verify and retry if needed
879
- */
880
- declare function createOrchestratedFixingTool(options: OrchestratedFixingOptions): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
881
- schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
882
- }, "strip", z.ZodTypeAny, {
883
- schema: {};
884
- }, {
885
- schema: {};
886
- }>, {
887
- schema: {};
888
- }, {
889
- schema: {};
890
- }, OrchestratedFixingResult, "fix_schema_orchestrated">;
891
- /**
892
- * Create a validation-only tool (no fixing).
893
- * Useful for checking schema validity before/after other operations.
894
- */
895
- declare function createValidateTool(): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
896
- schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
897
- }, "strip", z.ZodTypeAny, {
898
- schema: {};
899
- }, {
900
- schema: {};
901
- }>, {
902
- schema: {};
903
- }, {
904
- schema: {};
905
- }, {
906
- valid: boolean;
907
- errorCount: number;
908
- errors: unknown[];
909
- }, "validate_schema">;
910
-
911
- /**
912
- * GitHub tools configuration
913
- */
914
- interface GitHubToolsConfig {
915
- /** GitHub personal access token */
916
- token: string;
917
- /** Repository owner (e.g., 'octocat') */
918
- owner?: string;
919
- /** Repository name (e.g., 'hello-world') */
920
- repo?: string;
921
- /** Working directory for git operations */
922
- workDir: string;
923
- }
924
- /**
925
- * Create GitHub tools for the agent
926
- */
927
- declare function createGitHubTools(config: GitHubToolsConfig): {
928
- github_clone: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
929
- repoUrl: z.ZodString;
930
- branch: z.ZodOptional<z.ZodString>;
931
- depth: z.ZodOptional<z.ZodNumber>;
932
- }, "strip", z.ZodTypeAny, {
933
- repoUrl: string;
934
- branch?: string | undefined;
935
- depth?: number | undefined;
936
- }, {
937
- repoUrl: string;
938
- branch?: string | undefined;
939
- depth?: number | undefined;
940
- }>, {
941
- repoUrl: string;
942
- branch?: string | undefined;
943
- depth?: number | undefined;
944
- }, {
945
- repoUrl: string;
946
- branch?: string | undefined;
947
- depth?: number | undefined;
948
- }, string, "github_clone">;
949
- github_create_branch: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
950
- branchName: z.ZodString;
951
- baseBranch: z.ZodOptional<z.ZodString>;
952
- }, "strip", z.ZodTypeAny, {
953
- branchName: string;
954
- baseBranch?: string | undefined;
955
- }, {
956
- branchName: string;
957
- baseBranch?: string | undefined;
958
- }>, {
959
- branchName: string;
960
- baseBranch?: string | undefined;
961
- }, {
962
- branchName: string;
963
- baseBranch?: string | undefined;
964
- }, string, "github_create_branch">;
965
- github_commit: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
966
- message: z.ZodString;
967
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
968
- }, "strip", z.ZodTypeAny, {
969
- message: string;
970
- files?: string[] | undefined;
971
- }, {
972
- message: string;
973
- files?: string[] | undefined;
974
- }>, {
975
- message: string;
976
- files?: string[] | undefined;
977
- }, {
978
- message: string;
979
- files?: string[] | undefined;
980
- }, string, "github_commit">;
981
- github_push: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
982
- branchName: z.ZodString;
983
- }, "strip", z.ZodTypeAny, {
984
- branchName: string;
985
- }, {
986
- branchName: string;
987
- }>, {
988
- branchName: string;
989
- }, {
990
- branchName: string;
991
- }, string, "github_push">;
992
- github_create_pr: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
993
- title: z.ZodString;
994
- body: z.ZodString;
995
- baseBranch: z.ZodString;
996
- headBranch: z.ZodString;
997
- draft: z.ZodOptional<z.ZodBoolean>;
998
- }, "strip", z.ZodTypeAny, {
999
- baseBranch: string;
1000
- title: string;
1001
- body: string;
1002
- headBranch: string;
1003
- draft?: boolean | undefined;
1004
- }, {
1005
- baseBranch: string;
1006
- title: string;
1007
- body: string;
1008
- headBranch: string;
1009
- draft?: boolean | undefined;
1010
- }>, {
1011
- baseBranch: string;
1012
- title: string;
1013
- body: string;
1014
- headBranch: string;
1015
- draft?: boolean | undefined;
1016
- }, {
1017
- baseBranch: string;
1018
- title: string;
1019
- body: string;
1020
- headBranch: string;
1021
- draft?: boolean | undefined;
1022
- }, string, "github_create_pr">;
1023
- github_list_issues: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1024
- state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
1025
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1026
- limit: z.ZodOptional<z.ZodNumber>;
1027
- }, "strip", z.ZodTypeAny, {
1028
- limit?: number | undefined;
1029
- state?: "open" | "closed" | "all" | undefined;
1030
- labels?: string[] | undefined;
1031
- }, {
1032
- limit?: number | undefined;
1033
- state?: "open" | "closed" | "all" | undefined;
1034
- labels?: string[] | undefined;
1035
- }>, {
1036
- limit?: number | undefined;
1037
- state?: "open" | "closed" | "all" | undefined;
1038
- labels?: string[] | undefined;
1039
- }, {
1040
- limit?: number | undefined;
1041
- state?: "open" | "closed" | "all" | undefined;
1042
- labels?: string[] | undefined;
1043
- }, string, "github_list_issues">;
1044
- github_get_issue: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1045
- issueNumber: z.ZodNumber;
1046
- }, "strip", z.ZodTypeAny, {
1047
- issueNumber: number;
1048
- }, {
1049
- issueNumber: number;
1050
- }>, {
1051
- issueNumber: number;
1052
- }, {
1053
- issueNumber: number;
1054
- }, string, "github_get_issue">;
1055
- github_get_pr_comments: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1056
- prNumber: z.ZodNumber;
1057
- }, "strip", z.ZodTypeAny, {
1058
- prNumber: number;
1059
- }, {
1060
- prNumber: number;
1061
- }>, {
1062
- prNumber: number;
1063
- }, {
1064
- prNumber: number;
1065
- }, string, "github_get_pr_comments">;
1066
- };
1067
- /**
1068
- * Create GitHub tools as array (for easy spreading into agent tools)
1069
- */
1070
- declare function createGitHubToolsArray(config: GitHubToolsConfig): (_langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1071
- repoUrl: z.ZodString;
1072
- branch: z.ZodOptional<z.ZodString>;
1073
- depth: z.ZodOptional<z.ZodNumber>;
1074
- }, "strip", z.ZodTypeAny, {
1075
- repoUrl: string;
1076
- branch?: string | undefined;
1077
- depth?: number | undefined;
1078
- }, {
1079
- repoUrl: string;
1080
- branch?: string | undefined;
1081
- depth?: number | undefined;
1082
- }>, {
1083
- repoUrl: string;
1084
- branch?: string | undefined;
1085
- depth?: number | undefined;
1086
- }, {
1087
- repoUrl: string;
1088
- branch?: string | undefined;
1089
- depth?: number | undefined;
1090
- }, string, "github_clone"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1091
- branchName: z.ZodString;
1092
- baseBranch: z.ZodOptional<z.ZodString>;
1093
- }, "strip", z.ZodTypeAny, {
1094
- branchName: string;
1095
- baseBranch?: string | undefined;
1096
- }, {
1097
- branchName: string;
1098
- baseBranch?: string | undefined;
1099
- }>, {
1100
- branchName: string;
1101
- baseBranch?: string | undefined;
1102
- }, {
1103
- branchName: string;
1104
- baseBranch?: string | undefined;
1105
- }, string, "github_create_branch"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1106
- message: z.ZodString;
1107
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1108
- }, "strip", z.ZodTypeAny, {
1109
- message: string;
1110
- files?: string[] | undefined;
1111
- }, {
1112
- message: string;
1113
- files?: string[] | undefined;
1114
- }>, {
1115
- message: string;
1116
- files?: string[] | undefined;
1117
- }, {
1118
- message: string;
1119
- files?: string[] | undefined;
1120
- }, string, "github_commit"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1121
- branchName: z.ZodString;
1122
- }, "strip", z.ZodTypeAny, {
1123
- branchName: string;
1124
- }, {
1125
- branchName: string;
1126
- }>, {
1127
- branchName: string;
1128
- }, {
1129
- branchName: string;
1130
- }, string, "github_push"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1131
- title: z.ZodString;
1132
- body: z.ZodString;
1133
- baseBranch: z.ZodString;
1134
- headBranch: z.ZodString;
1135
- draft: z.ZodOptional<z.ZodBoolean>;
1136
- }, "strip", z.ZodTypeAny, {
1137
- baseBranch: string;
1138
- title: string;
1139
- body: string;
1140
- headBranch: string;
1141
- draft?: boolean | undefined;
1142
- }, {
1143
- baseBranch: string;
1144
- title: string;
1145
- body: string;
1146
- headBranch: string;
1147
- draft?: boolean | undefined;
1148
- }>, {
1149
- baseBranch: string;
1150
- title: string;
1151
- body: string;
1152
- headBranch: string;
1153
- draft?: boolean | undefined;
1154
- }, {
1155
- baseBranch: string;
1156
- title: string;
1157
- body: string;
1158
- headBranch: string;
1159
- draft?: boolean | undefined;
1160
- }, string, "github_create_pr"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1161
- state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
1162
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1163
- limit: z.ZodOptional<z.ZodNumber>;
1164
- }, "strip", z.ZodTypeAny, {
1165
- limit?: number | undefined;
1166
- state?: "open" | "closed" | "all" | undefined;
1167
- labels?: string[] | undefined;
1168
- }, {
1169
- limit?: number | undefined;
1170
- state?: "open" | "closed" | "all" | undefined;
1171
- labels?: string[] | undefined;
1172
- }>, {
1173
- limit?: number | undefined;
1174
- state?: "open" | "closed" | "all" | undefined;
1175
- labels?: string[] | undefined;
1176
- }, {
1177
- limit?: number | undefined;
1178
- state?: "open" | "closed" | "all" | undefined;
1179
- labels?: string[] | undefined;
1180
- }, string, "github_list_issues"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1181
- issueNumber: z.ZodNumber;
1182
- }, "strip", z.ZodTypeAny, {
1183
- issueNumber: number;
1184
- }, {
1185
- issueNumber: number;
1186
- }>, {
1187
- issueNumber: number;
1188
- }, {
1189
- issueNumber: number;
1190
- }, string, "github_get_issue"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
1191
- prNumber: z.ZodNumber;
1192
- }, "strip", z.ZodTypeAny, {
1193
- prNumber: number;
1194
- }, {
1195
- prNumber: number;
1196
- }>, {
1197
- prNumber: number;
1198
- }, {
1199
- prNumber: number;
1200
- }, string, "github_get_pr_comments">)[];
1201
-
1202
- /**
1203
- * Create all agent tools for a workspace.
1204
- *
1205
- * All dependencies are now internal to @almadar/agent - no dependency injection needed.
1206
- *
1207
- * @param workDir - Workspace directory
1208
- * @returns All tools ready for use
1209
- */
1210
- declare function createAgentTools(workDir: string): {
1211
- execute: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1212
- command: zod.ZodString;
1213
- timeout: zod.ZodOptional<zod.ZodNumber>;
1214
- }, "strip", zod.ZodTypeAny, {
1215
- command: string;
1216
- timeout?: number | undefined;
1217
- }, {
1218
- command: string;
1219
- timeout?: number | undefined;
1220
- }>, {
1221
- command: string;
1222
- timeout?: number | undefined;
1223
- }, {
1224
- command: string;
1225
- timeout?: number | undefined;
1226
- }, string, "execute">;
1227
- validateSchema: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>, {}, {}, string, "validate_schema">;
1228
- generateSchema: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1229
- userRequest: zod.ZodString;
1230
- suggestedTraits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1231
- suggestedEntities: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1232
- suggestedPages: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1233
- suggestedPatterns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1234
- additionalInstructions: zod.ZodOptional<zod.ZodString>;
1235
- existingSchema: zod.ZodOptional<zod.ZodString>;
1236
- }, "strip", zod.ZodTypeAny, {
1237
- userRequest: string;
1238
- suggestedTraits?: string[] | undefined;
1239
- suggestedEntities?: string[] | undefined;
1240
- suggestedPages?: string[] | undefined;
1241
- suggestedPatterns?: string[] | undefined;
1242
- additionalInstructions?: string | undefined;
1243
- existingSchema?: string | undefined;
1244
- }, {
1245
- userRequest: string;
1246
- suggestedTraits?: string[] | undefined;
1247
- suggestedEntities?: string[] | undefined;
1248
- suggestedPages?: string[] | undefined;
1249
- suggestedPatterns?: string[] | undefined;
1250
- additionalInstructions?: string | undefined;
1251
- existingSchema?: string | undefined;
1252
- }>, {
1253
- userRequest: string;
1254
- suggestedTraits?: string[] | undefined;
1255
- suggestedEntities?: string[] | undefined;
1256
- suggestedPages?: string[] | undefined;
1257
- suggestedPatterns?: string[] | undefined;
1258
- additionalInstructions?: string | undefined;
1259
- existingSchema?: string | undefined;
1260
- }, {
1261
- userRequest: string;
1262
- suggestedTraits?: string[] | undefined;
1263
- suggestedEntities?: string[] | undefined;
1264
- suggestedPages?: string[] | undefined;
1265
- suggestedPatterns?: string[] | undefined;
1266
- additionalInstructions?: string | undefined;
1267
- existingSchema?: string | undefined;
1268
- }, string, "generate_schema">;
1269
- finishTask: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1270
- summary: zod.ZodString;
1271
- schemaPath: zod.ZodOptional<zod.ZodString>;
1272
- }, "strip", zod.ZodTypeAny, {
1273
- summary: string;
1274
- schemaPath?: string | undefined;
1275
- }, {
1276
- summary: string;
1277
- schemaPath?: string | undefined;
1278
- }>, {
1279
- summary: string;
1280
- schemaPath?: string | undefined;
1281
- }, {
1282
- summary: string;
1283
- schemaPath?: string | undefined;
1284
- }, {
1285
- success: boolean;
1286
- status: string;
1287
- message: string;
1288
- summary: string;
1289
- autoCombined: boolean;
1290
- source: "domain" | "orbitals" | undefined;
1291
- stats: {
1292
- totalOrbitals: number;
1293
- totalEntities: number;
1294
- totalPages: number;
1295
- totalTraits: number;
1296
- } | undefined;
1297
- validation: {
1298
- valid: boolean;
1299
- errorCount: number;
1300
- warningCount: number;
1301
- } | undefined;
1302
- designQuality: {
1303
- propCorrections: number;
1304
- compositionWarnings: string[];
1305
- };
1306
- schemaPath: string | undefined;
1307
- nextAction: string;
1308
- }, "finish_task">;
1309
- combineSchemas: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1310
- orbitals: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1311
- name: zod.ZodString;
1312
- description: zod.ZodOptional<zod.ZodString>;
1313
- entity: zod.ZodObject<{
1314
- name: zod.ZodString;
1315
- collection: zod.ZodOptional<zod.ZodString>;
1316
- fields: zod.ZodArray<zod.ZodAny, "many">;
1317
- timestamps: zod.ZodOptional<zod.ZodBoolean>;
1318
- }, "strip", zod.ZodTypeAny, {
1319
- name: string;
1320
- fields: any[];
1321
- collection?: string | undefined;
1322
- timestamps?: boolean | undefined;
1323
- }, {
1324
- name: string;
1325
- fields: any[];
1326
- collection?: string | undefined;
1327
- timestamps?: boolean | undefined;
1328
- }>;
1329
- traits: zod.ZodArray<zod.ZodAny, "many">;
1330
- pages: zod.ZodArray<zod.ZodAny, "many">;
1331
- emits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1332
- listens: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
1333
- }, "strip", zod.ZodTypeAny, {
1334
- pages: any[];
1335
- traits: any[];
1336
- name: string;
1337
- entity: {
1338
- name: string;
1339
- fields: any[];
1340
- collection?: string | undefined;
1341
- timestamps?: boolean | undefined;
1342
- };
1343
- description?: string | undefined;
1344
- emits?: string[] | undefined;
1345
- listens?: any[] | undefined;
1346
- }, {
1347
- pages: any[];
1348
- traits: any[];
1349
- name: string;
1350
- entity: {
1351
- name: string;
1352
- fields: any[];
1353
- collection?: string | undefined;
1354
- timestamps?: boolean | undefined;
1355
- };
1356
- description?: string | undefined;
1357
- emits?: string[] | undefined;
1358
- listens?: any[] | undefined;
1359
- }>, "many">>;
1360
- name: zod.ZodOptional<zod.ZodString>;
1361
- description: zod.ZodOptional<zod.ZodString>;
1362
- version: zod.ZodOptional<zod.ZodString>;
1363
- theme: zod.ZodOptional<zod.ZodString>;
1364
- defaultRoute: zod.ZodOptional<zod.ZodString>;
1365
- validate: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
1366
- }, "strip", zod.ZodTypeAny, {
1367
- validate: boolean;
1368
- version?: string | undefined;
1369
- name?: string | undefined;
1370
- description?: string | undefined;
1371
- theme?: string | undefined;
1372
- orbitals?: {
1373
- pages: any[];
1374
- traits: any[];
1375
- name: string;
1376
- entity: {
1377
- name: string;
1378
- fields: any[];
1379
- collection?: string | undefined;
1380
- timestamps?: boolean | undefined;
1381
- };
1382
- description?: string | undefined;
1383
- emits?: string[] | undefined;
1384
- listens?: any[] | undefined;
1385
- }[] | undefined;
1386
- defaultRoute?: string | undefined;
1387
- }, {
1388
- version?: string | undefined;
1389
- name?: string | undefined;
1390
- description?: string | undefined;
1391
- validate?: boolean | undefined;
1392
- theme?: string | undefined;
1393
- orbitals?: {
1394
- pages: any[];
1395
- traits: any[];
1396
- name: string;
1397
- entity: {
1398
- name: string;
1399
- fields: any[];
1400
- collection?: string | undefined;
1401
- timestamps?: boolean | undefined;
1402
- };
1403
- description?: string | undefined;
1404
- emits?: string[] | undefined;
1405
- listens?: any[] | undefined;
1406
- }[] | undefined;
1407
- defaultRoute?: string | undefined;
1408
- }>, {
1409
- validate: boolean;
1410
- version?: string | undefined;
1411
- name?: string | undefined;
1412
- description?: string | undefined;
1413
- theme?: string | undefined;
1414
- orbitals?: {
1415
- pages: any[];
1416
- traits: any[];
1417
- name: string;
1418
- entity: {
1419
- name: string;
1420
- fields: any[];
1421
- collection?: string | undefined;
1422
- timestamps?: boolean | undefined;
1423
- };
1424
- description?: string | undefined;
1425
- emits?: string[] | undefined;
1426
- listens?: any[] | undefined;
1427
- }[] | undefined;
1428
- defaultRoute?: string | undefined;
1429
- }, {
1430
- version?: string | undefined;
1431
- name?: string | undefined;
1432
- description?: string | undefined;
1433
- validate?: boolean | undefined;
1434
- theme?: string | undefined;
1435
- orbitals?: {
1436
- pages: any[];
1437
- traits: any[];
1438
- name: string;
1439
- entity: {
1440
- name: string;
1441
- fields: any[];
1442
- collection?: string | undefined;
1443
- timestamps?: boolean | undefined;
1444
- };
1445
- description?: string | undefined;
1446
- emits?: string[] | undefined;
1447
- listens?: any[] | undefined;
1448
- }[] | undefined;
1449
- defaultRoute?: string | undefined;
1450
- }, string, "construct_combined_schema">;
1451
- orbitalSubagent: {
1452
- tool: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1453
- orbital: zod.ZodObject<{
1454
- name: zod.ZodString;
1455
- entity: zod.ZodObject<{
1456
- name: zod.ZodString;
1457
- persistence: zod.ZodEnum<["persistent", "runtime", "singleton", "instance"]>;
1458
- fields: zod.ZodArray<zod.ZodObject<{
1459
- name: zod.ZodString;
1460
- type: zod.ZodString;
1461
- required: zod.ZodOptional<zod.ZodBoolean>;
1462
- }, "strip", zod.ZodTypeAny, {
1463
- type: string;
1464
- name: string;
1465
- required?: boolean | undefined;
1466
- }, {
1467
- type: string;
1468
- name: string;
1469
- required?: boolean | undefined;
1470
- }>, "many">;
1471
- }, "strip", zod.ZodTypeAny, {
1472
- name: string;
1473
- fields: {
1474
- type: string;
1475
- name: string;
1476
- required?: boolean | undefined;
1477
- }[];
1478
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1479
- }, {
1480
- name: string;
1481
- fields: {
1482
- type: string;
1483
- name: string;
1484
- required?: boolean | undefined;
1485
- }[];
1486
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1487
- }>;
1488
- traits: zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>;
1489
- patterns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1490
- pages: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1491
- name: zod.ZodString;
1492
- path: zod.ZodString;
1493
- viewType: zod.ZodString;
1494
- }, "strip", zod.ZodTypeAny, {
1495
- path: string;
1496
- name: string;
1497
- viewType: string;
1498
- }, {
1499
- path: string;
1500
- name: string;
1501
- viewType: string;
1502
- }>, "many">>;
1503
- domainContext: zod.ZodOptional<zod.ZodObject<{
1504
- request: zod.ZodString;
1505
- requestFragment: zod.ZodOptional<zod.ZodString>;
1506
- category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
1507
- vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1508
- }, "strip", zod.ZodTypeAny, {
1509
- request: string;
1510
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1511
- requestFragment?: string | undefined;
1512
- vocabulary?: Record<string, string> | undefined;
1513
- }, {
1514
- request: string;
1515
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1516
- requestFragment?: string | undefined;
1517
- vocabulary?: Record<string, string> | undefined;
1518
- }>>;
1519
- design: zod.ZodOptional<zod.ZodObject<{
1520
- style: zod.ZodOptional<zod.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
1521
- uxHints: zod.ZodOptional<zod.ZodObject<{
1522
- flowPattern: zod.ZodOptional<zod.ZodString>;
1523
- listPattern: zod.ZodOptional<zod.ZodString>;
1524
- formPattern: zod.ZodOptional<zod.ZodString>;
1525
- detailPattern: zod.ZodOptional<zod.ZodString>;
1526
- }, "strip", zod.ZodTypeAny, {
1527
- flowPattern?: string | undefined;
1528
- listPattern?: string | undefined;
1529
- formPattern?: string | undefined;
1530
- detailPattern?: string | undefined;
1531
- }, {
1532
- flowPattern?: string | undefined;
1533
- listPattern?: string | undefined;
1534
- formPattern?: string | undefined;
1535
- detailPattern?: string | undefined;
1536
- }>>;
1537
- }, "strip", zod.ZodTypeAny, {
1538
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1539
- uxHints?: {
1540
- flowPattern?: string | undefined;
1541
- listPattern?: string | undefined;
1542
- formPattern?: string | undefined;
1543
- detailPattern?: string | undefined;
1544
- } | undefined;
1545
- }, {
1546
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1547
- uxHints?: {
1548
- flowPattern?: string | undefined;
1549
- listPattern?: string | undefined;
1550
- formPattern?: string | undefined;
1551
- detailPattern?: string | undefined;
1552
- } | undefined;
1553
- }>>;
1554
- emits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1555
- listens: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1556
- event: zod.ZodString;
1557
- triggers: zod.ZodString;
1558
- }, "strip", zod.ZodTypeAny, {
1559
- event: string;
1560
- triggers: string;
1561
- }, {
1562
- event: string;
1563
- triggers: string;
1564
- }>, "many">>;
1565
- relations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1566
- entity: zod.ZodString;
1567
- alias: zod.ZodOptional<zod.ZodString>;
1568
- cardinality: zod.ZodEnum<["one", "many"]>;
1569
- }, "strip", zod.ZodTypeAny, {
1570
- entity: string;
1571
- cardinality: "many" | "one";
1572
- alias?: string | undefined;
1573
- }, {
1574
- entity: string;
1575
- cardinality: "many" | "one";
1576
- alias?: string | undefined;
1577
- }>, "many">>;
1578
- }, "strip", zod.ZodTypeAny, {
1579
- traits: string[];
1580
- name: string;
1581
- entity: {
1582
- name: string;
1583
- fields: {
1584
- type: string;
1585
- name: string;
1586
- required?: boolean | undefined;
1587
- }[];
1588
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1589
- };
1590
- pages?: {
1591
- path: string;
1592
- name: string;
1593
- viewType: string;
1594
- }[] | undefined;
1595
- relations?: {
1596
- entity: string;
1597
- cardinality: "many" | "one";
1598
- alias?: string | undefined;
1599
- }[] | undefined;
1600
- patterns?: string[] | undefined;
1601
- domainContext?: {
1602
- request: string;
1603
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1604
- requestFragment?: string | undefined;
1605
- vocabulary?: Record<string, string> | undefined;
1606
- } | undefined;
1607
- design?: {
1608
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1609
- uxHints?: {
1610
- flowPattern?: string | undefined;
1611
- listPattern?: string | undefined;
1612
- formPattern?: string | undefined;
1613
- detailPattern?: string | undefined;
1614
- } | undefined;
1615
- } | undefined;
1616
- emits?: string[] | undefined;
1617
- listens?: {
1618
- event: string;
1619
- triggers: string;
1620
- }[] | undefined;
1621
- }, {
1622
- name: string;
1623
- entity: {
1624
- name: string;
1625
- fields: {
1626
- type: string;
1627
- name: string;
1628
- required?: boolean | undefined;
1629
- }[];
1630
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1631
- };
1632
- pages?: {
1633
- path: string;
1634
- name: string;
1635
- viewType: string;
1636
- }[] | undefined;
1637
- traits?: string[] | undefined;
1638
- relations?: {
1639
- entity: string;
1640
- cardinality: "many" | "one";
1641
- alias?: string | undefined;
1642
- }[] | undefined;
1643
- patterns?: string[] | undefined;
1644
- domainContext?: {
1645
- request: string;
1646
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1647
- requestFragment?: string | undefined;
1648
- vocabulary?: Record<string, string> | undefined;
1649
- } | undefined;
1650
- design?: {
1651
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1652
- uxHints?: {
1653
- flowPattern?: string | undefined;
1654
- listPattern?: string | undefined;
1655
- formPattern?: string | undefined;
1656
- detailPattern?: string | undefined;
1657
- } | undefined;
1658
- } | undefined;
1659
- emits?: string[] | undefined;
1660
- listens?: {
1661
- event: string;
1662
- triggers: string;
1663
- }[] | undefined;
1664
- }>;
1665
- orbitalIndex: zod.ZodOptional<zod.ZodNumber>;
1666
- totalOrbitals: zod.ZodOptional<zod.ZodNumber>;
1667
- }, "strip", zod.ZodTypeAny, {
1668
- orbital: {
1669
- traits: string[];
1670
- name: string;
1671
- entity: {
1672
- name: string;
1673
- fields: {
1674
- type: string;
1675
- name: string;
1676
- required?: boolean | undefined;
1677
- }[];
1678
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1679
- };
1680
- pages?: {
1681
- path: string;
1682
- name: string;
1683
- viewType: string;
1684
- }[] | undefined;
1685
- relations?: {
1686
- entity: string;
1687
- cardinality: "many" | "one";
1688
- alias?: string | undefined;
1689
- }[] | undefined;
1690
- patterns?: string[] | undefined;
1691
- domainContext?: {
1692
- request: string;
1693
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1694
- requestFragment?: string | undefined;
1695
- vocabulary?: Record<string, string> | undefined;
1696
- } | undefined;
1697
- design?: {
1698
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1699
- uxHints?: {
1700
- flowPattern?: string | undefined;
1701
- listPattern?: string | undefined;
1702
- formPattern?: string | undefined;
1703
- detailPattern?: string | undefined;
1704
- } | undefined;
1705
- } | undefined;
1706
- emits?: string[] | undefined;
1707
- listens?: {
1708
- event: string;
1709
- triggers: string;
1710
- }[] | undefined;
1711
- };
1712
- orbitalIndex?: number | undefined;
1713
- totalOrbitals?: number | undefined;
1714
- }, {
1715
- orbital: {
1716
- name: string;
1717
- entity: {
1718
- name: string;
1719
- fields: {
1720
- type: string;
1721
- name: string;
1722
- required?: boolean | undefined;
1723
- }[];
1724
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1725
- };
1726
- pages?: {
1727
- path: string;
1728
- name: string;
1729
- viewType: string;
1730
- }[] | undefined;
1731
- traits?: string[] | undefined;
1732
- relations?: {
1733
- entity: string;
1734
- cardinality: "many" | "one";
1735
- alias?: string | undefined;
1736
- }[] | undefined;
1737
- patterns?: string[] | undefined;
1738
- domainContext?: {
1739
- request: string;
1740
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1741
- requestFragment?: string | undefined;
1742
- vocabulary?: Record<string, string> | undefined;
1743
- } | undefined;
1744
- design?: {
1745
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1746
- uxHints?: {
1747
- flowPattern?: string | undefined;
1748
- listPattern?: string | undefined;
1749
- formPattern?: string | undefined;
1750
- detailPattern?: string | undefined;
1751
- } | undefined;
1752
- } | undefined;
1753
- emits?: string[] | undefined;
1754
- listens?: {
1755
- event: string;
1756
- triggers: string;
1757
- }[] | undefined;
1758
- };
1759
- orbitalIndex?: number | undefined;
1760
- totalOrbitals?: number | undefined;
1761
- }>, {
1762
- orbital: {
1763
- traits: string[];
1764
- name: string;
1765
- entity: {
1766
- name: string;
1767
- fields: {
1768
- type: string;
1769
- name: string;
1770
- required?: boolean | undefined;
1771
- }[];
1772
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1773
- };
1774
- pages?: {
1775
- path: string;
1776
- name: string;
1777
- viewType: string;
1778
- }[] | undefined;
1779
- relations?: {
1780
- entity: string;
1781
- cardinality: "many" | "one";
1782
- alias?: string | undefined;
1783
- }[] | undefined;
1784
- patterns?: string[] | undefined;
1785
- domainContext?: {
1786
- request: string;
1787
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1788
- requestFragment?: string | undefined;
1789
- vocabulary?: Record<string, string> | undefined;
1790
- } | undefined;
1791
- design?: {
1792
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1793
- uxHints?: {
1794
- flowPattern?: string | undefined;
1795
- listPattern?: string | undefined;
1796
- formPattern?: string | undefined;
1797
- detailPattern?: string | undefined;
1798
- } | undefined;
1799
- } | undefined;
1800
- emits?: string[] | undefined;
1801
- listens?: {
1802
- event: string;
1803
- triggers: string;
1804
- }[] | undefined;
1805
- };
1806
- orbitalIndex?: number | undefined;
1807
- totalOrbitals?: number | undefined;
1808
- }, {
1809
- orbital: {
1810
- name: string;
1811
- entity: {
1812
- name: string;
1813
- fields: {
1814
- type: string;
1815
- name: string;
1816
- required?: boolean | undefined;
1817
- }[];
1818
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1819
- };
1820
- pages?: {
1821
- path: string;
1822
- name: string;
1823
- viewType: string;
1824
- }[] | undefined;
1825
- traits?: string[] | undefined;
1826
- relations?: {
1827
- entity: string;
1828
- cardinality: "many" | "one";
1829
- alias?: string | undefined;
1830
- }[] | undefined;
1831
- patterns?: string[] | undefined;
1832
- domainContext?: {
1833
- request: string;
1834
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1835
- requestFragment?: string | undefined;
1836
- vocabulary?: Record<string, string> | undefined;
1837
- } | undefined;
1838
- design?: {
1839
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1840
- uxHints?: {
1841
- flowPattern?: string | undefined;
1842
- listPattern?: string | undefined;
1843
- formPattern?: string | undefined;
1844
- detailPattern?: string | undefined;
1845
- } | undefined;
1846
- } | undefined;
1847
- emits?: string[] | undefined;
1848
- listens?: {
1849
- event: string;
1850
- triggers: string;
1851
- }[] | undefined;
1852
- };
1853
- orbitalIndex?: number | undefined;
1854
- totalOrbitals?: number | undefined;
1855
- }, string, "generate_orbital">;
1856
- setEventCallback: (callback: SubagentEventCallback$1) => void;
1857
- setOrbitalCompleteCallback: (callback: OrbitalCompleteCallback) => void;
1858
- };
1859
- traitSubagent: {
1860
- tool: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1861
- traitSpec: zod.ZodObject<{
1862
- name: zod.ZodString;
1863
- description: zod.ZodString;
1864
- category: zod.ZodOptional<zod.ZodString>;
1865
- states: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1866
- events: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1867
- requiredFields: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1868
- name: zod.ZodString;
1869
- type: zod.ZodString;
1870
- description: zod.ZodOptional<zod.ZodString>;
1871
- }, "strip", zod.ZodTypeAny, {
1872
- type: string;
1873
- name: string;
1874
- description?: string | undefined;
1875
- }, {
1876
- type: string;
1877
- name: string;
1878
- description?: string | undefined;
1879
- }>, "many">>;
1880
- needsTicks: zod.ZodOptional<zod.ZodBoolean>;
1881
- needsEmit: zod.ZodOptional<zod.ZodBoolean>;
1882
- needsListens: zod.ZodOptional<zod.ZodBoolean>;
1883
- }, "strip", zod.ZodTypeAny, {
1884
- name: string;
1885
- description: string;
1886
- states?: string[] | undefined;
1887
- events?: string[] | undefined;
1888
- category?: string | undefined;
1889
- requiredFields?: {
1890
- type: string;
1891
- name: string;
1892
- description?: string | undefined;
1893
- }[] | undefined;
1894
- needsTicks?: boolean | undefined;
1895
- needsEmit?: boolean | undefined;
1896
- needsListens?: boolean | undefined;
1897
- }, {
1898
- name: string;
1899
- description: string;
1900
- states?: string[] | undefined;
1901
- events?: string[] | undefined;
1902
- category?: string | undefined;
1903
- requiredFields?: {
1904
- type: string;
1905
- name: string;
1906
- description?: string | undefined;
1907
- }[] | undefined;
1908
- needsTicks?: boolean | undefined;
1909
- needsEmit?: boolean | undefined;
1910
- needsListens?: boolean | undefined;
1911
- }>;
1912
- traitIndex: zod.ZodOptional<zod.ZodNumber>;
1913
- totalTraits: zod.ZodOptional<zod.ZodNumber>;
1914
- }, "strip", zod.ZodTypeAny, {
1915
- traitSpec: {
1916
- name: string;
1917
- description: string;
1918
- states?: string[] | undefined;
1919
- events?: string[] | undefined;
1920
- category?: string | undefined;
1921
- requiredFields?: {
1922
- type: string;
1923
- name: string;
1924
- description?: string | undefined;
1925
- }[] | undefined;
1926
- needsTicks?: boolean | undefined;
1927
- needsEmit?: boolean | undefined;
1928
- needsListens?: boolean | undefined;
1929
- };
1930
- traitIndex?: number | undefined;
1931
- totalTraits?: number | undefined;
1932
- }, {
1933
- traitSpec: {
1934
- name: string;
1935
- description: string;
1936
- states?: string[] | undefined;
1937
- events?: string[] | undefined;
1938
- category?: string | undefined;
1939
- requiredFields?: {
1940
- type: string;
1941
- name: string;
1942
- description?: string | undefined;
1943
- }[] | undefined;
1944
- needsTicks?: boolean | undefined;
1945
- needsEmit?: boolean | undefined;
1946
- needsListens?: boolean | undefined;
1947
- };
1948
- traitIndex?: number | undefined;
1949
- totalTraits?: number | undefined;
1950
- }>, {
1951
- traitSpec: {
1952
- name: string;
1953
- description: string;
1954
- states?: string[] | undefined;
1955
- events?: string[] | undefined;
1956
- category?: string | undefined;
1957
- requiredFields?: {
1958
- type: string;
1959
- name: string;
1960
- description?: string | undefined;
1961
- }[] | undefined;
1962
- needsTicks?: boolean | undefined;
1963
- needsEmit?: boolean | undefined;
1964
- needsListens?: boolean | undefined;
1965
- };
1966
- traitIndex?: number | undefined;
1967
- totalTraits?: number | undefined;
1968
- }, {
1969
- traitSpec: {
1970
- name: string;
1971
- description: string;
1972
- states?: string[] | undefined;
1973
- events?: string[] | undefined;
1974
- category?: string | undefined;
1975
- requiredFields?: {
1976
- type: string;
1977
- name: string;
1978
- description?: string | undefined;
1979
- }[] | undefined;
1980
- needsTicks?: boolean | undefined;
1981
- needsEmit?: boolean | undefined;
1982
- needsListens?: boolean | undefined;
1983
- };
1984
- traitIndex?: number | undefined;
1985
- totalTraits?: number | undefined;
1986
- }, string, "generate_custom_trait">;
1987
- setEventCallback: (callback: TraitEventCallback) => void;
1988
- setTraitCompleteCallback: (callback: TraitCompleteCallback) => void;
1989
- };
1990
- domainOrbitalTools: {
1991
- generateOrbitalDomain: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1992
- sessionId: zod.ZodString;
1993
- orbital: zod.ZodObject<{
1994
- name: zod.ZodString;
1995
- entity: zod.ZodObject<{
1996
- name: zod.ZodString;
1997
- persistence: zod.ZodEnum<["persistent", "runtime", "singleton"]>;
1998
- fields: zod.ZodArray<zod.ZodObject<{
1999
- name: zod.ZodString;
2000
- type: zod.ZodString;
2001
- required: zod.ZodOptional<zod.ZodBoolean>;
2002
- default: zod.ZodOptional<zod.ZodAny>;
2003
- }, "strip", zod.ZodTypeAny, {
2004
- type: string;
2005
- name: string;
2006
- default?: any;
2007
- required?: boolean | undefined;
2008
- }, {
2009
- type: string;
2010
- name: string;
2011
- default?: any;
2012
- required?: boolean | undefined;
2013
- }>, "many">;
2014
- relations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2015
- entity: zod.ZodString;
2016
- alias: zod.ZodOptional<zod.ZodString>;
2017
- type: zod.ZodEnum<["belongs_to", "has_many"]>;
2018
- }, "strip", zod.ZodTypeAny, {
2019
- type: "belongs_to" | "has_many";
2020
- entity: string;
2021
- alias?: string | undefined;
2022
- }, {
2023
- type: "belongs_to" | "has_many";
2024
- entity: string;
2025
- alias?: string | undefined;
2026
- }>, "many">>;
2027
- }, "strip", zod.ZodTypeAny, {
2028
- name: string;
2029
- fields: {
2030
- type: string;
2031
- name: string;
2032
- default?: any;
2033
- required?: boolean | undefined;
2034
- }[];
2035
- persistence: "persistent" | "runtime" | "singleton";
2036
- relations?: {
2037
- type: "belongs_to" | "has_many";
2038
- entity: string;
2039
- alias?: string | undefined;
2040
- }[] | undefined;
2041
- }, {
2042
- name: string;
2043
- fields: {
2044
- type: string;
2045
- name: string;
2046
- default?: any;
2047
- required?: boolean | undefined;
2048
- }[];
2049
- persistence: "persistent" | "runtime" | "singleton";
2050
- relations?: {
2051
- type: "belongs_to" | "has_many";
2052
- entity: string;
2053
- alias?: string | undefined;
2054
- }[] | undefined;
2055
- }>;
2056
- pages: zod.ZodArray<zod.ZodObject<{
2057
- name: zod.ZodString;
2058
- path: zod.ZodString;
2059
- viewType: zod.ZodString;
2060
- isInitial: zod.ZodOptional<zod.ZodBoolean>;
2061
- }, "strip", zod.ZodTypeAny, {
2062
- path: string;
2063
- name: string;
2064
- viewType: string;
2065
- isInitial?: boolean | undefined;
2066
- }, {
2067
- path: string;
2068
- name: string;
2069
- viewType: string;
2070
- isInitial?: boolean | undefined;
2071
- }>, "many">;
2072
- traits: zod.ZodArray<zod.ZodString, "many">;
2073
- patterns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2074
- domainContext: zod.ZodOptional<zod.ZodObject<{
2075
- request: zod.ZodString;
2076
- requestFragment: zod.ZodOptional<zod.ZodString>;
2077
- category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
2078
- vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
2079
- }, "strip", zod.ZodTypeAny, {
2080
- request: string;
2081
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2082
- requestFragment?: string | undefined;
2083
- vocabulary?: Record<string, string> | undefined;
2084
- }, {
2085
- request: string;
2086
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2087
- requestFragment?: string | undefined;
2088
- vocabulary?: Record<string, string> | undefined;
2089
- }>>;
2090
- design: zod.ZodOptional<zod.ZodObject<{
2091
- style: zod.ZodOptional<zod.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
2092
- uxHints: zod.ZodOptional<zod.ZodObject<{
2093
- flowPattern: zod.ZodOptional<zod.ZodEnum<["hub-spoke", "master-detail", "crud-cycle", "linear", "role-based"]>>;
2094
- listPattern: zod.ZodOptional<zod.ZodEnum<["entity-table", "entity-cards", "entity-list"]>>;
2095
- formPattern: zod.ZodOptional<zod.ZodEnum<["modal", "drawer", "page"]>>;
2096
- detailPattern: zod.ZodOptional<zod.ZodEnum<["drawer", "page", "split"]>>;
2097
- }, "strip", zod.ZodTypeAny, {
2098
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2099
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2100
- formPattern?: "modal" | "drawer" | "page" | undefined;
2101
- detailPattern?: "split" | "drawer" | "page" | undefined;
2102
- }, {
2103
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2104
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2105
- formPattern?: "modal" | "drawer" | "page" | undefined;
2106
- detailPattern?: "split" | "drawer" | "page" | undefined;
2107
- }>>;
2108
- }, "strip", zod.ZodTypeAny, {
2109
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2110
- uxHints?: {
2111
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2112
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2113
- formPattern?: "modal" | "drawer" | "page" | undefined;
2114
- detailPattern?: "split" | "drawer" | "page" | undefined;
2115
- } | undefined;
2116
- }, {
2117
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2118
- uxHints?: {
2119
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2120
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2121
- formPattern?: "modal" | "drawer" | "page" | undefined;
2122
- detailPattern?: "split" | "drawer" | "page" | undefined;
2123
- } | undefined;
2124
- }>>;
2125
- emits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2126
- listens: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2127
- event: zod.ZodString;
2128
- triggers: zod.ZodString;
2129
- }, "strip", zod.ZodTypeAny, {
2130
- event: string;
2131
- triggers: string;
2132
- }, {
2133
- event: string;
2134
- triggers: string;
2135
- }>, "many">>;
2136
- }, "strip", zod.ZodTypeAny, {
2137
- pages: {
2138
- path: string;
2139
- name: string;
2140
- viewType: string;
2141
- isInitial?: boolean | undefined;
2142
- }[];
2143
- traits: string[];
2144
- name: string;
2145
- entity: {
2146
- name: string;
2147
- fields: {
2148
- type: string;
2149
- name: string;
2150
- default?: any;
2151
- required?: boolean | undefined;
2152
- }[];
2153
- persistence: "persistent" | "runtime" | "singleton";
2154
- relations?: {
2155
- type: "belongs_to" | "has_many";
2156
- entity: string;
2157
- alias?: string | undefined;
2158
- }[] | undefined;
2159
- };
2160
- patterns?: string[] | undefined;
2161
- domainContext?: {
2162
- request: string;
2163
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2164
- requestFragment?: string | undefined;
2165
- vocabulary?: Record<string, string> | undefined;
2166
- } | undefined;
2167
- design?: {
2168
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2169
- uxHints?: {
2170
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2171
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2172
- formPattern?: "modal" | "drawer" | "page" | undefined;
2173
- detailPattern?: "split" | "drawer" | "page" | undefined;
2174
- } | undefined;
2175
- } | undefined;
2176
- emits?: string[] | undefined;
2177
- listens?: {
2178
- event: string;
2179
- triggers: string;
2180
- }[] | undefined;
2181
- }, {
2182
- pages: {
2183
- path: string;
2184
- name: string;
2185
- viewType: string;
2186
- isInitial?: boolean | undefined;
2187
- }[];
2188
- traits: string[];
2189
- name: string;
2190
- entity: {
2191
- name: string;
2192
- fields: {
2193
- type: string;
2194
- name: string;
2195
- default?: any;
2196
- required?: boolean | undefined;
2197
- }[];
2198
- persistence: "persistent" | "runtime" | "singleton";
2199
- relations?: {
2200
- type: "belongs_to" | "has_many";
2201
- entity: string;
2202
- alias?: string | undefined;
2203
- }[] | undefined;
2204
- };
2205
- patterns?: string[] | undefined;
2206
- domainContext?: {
2207
- request: string;
2208
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2209
- requestFragment?: string | undefined;
2210
- vocabulary?: Record<string, string> | undefined;
2211
- } | undefined;
2212
- design?: {
2213
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2214
- uxHints?: {
2215
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2216
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2217
- formPattern?: "modal" | "drawer" | "page" | undefined;
2218
- detailPattern?: "split" | "drawer" | "page" | undefined;
2219
- } | undefined;
2220
- } | undefined;
2221
- emits?: string[] | undefined;
2222
- listens?: {
2223
- event: string;
2224
- triggers: string;
2225
- }[] | undefined;
2226
- }>;
2227
- orbitalIndex: zod.ZodNumber;
2228
- totalOrbitals: zod.ZodNumber;
2229
- }, "strip", zod.ZodTypeAny, {
2230
- sessionId: string;
2231
- orbital: {
2232
- pages: {
2233
- path: string;
2234
- name: string;
2235
- viewType: string;
2236
- isInitial?: boolean | undefined;
2237
- }[];
2238
- traits: string[];
2239
- name: string;
2240
- entity: {
2241
- name: string;
2242
- fields: {
2243
- type: string;
2244
- name: string;
2245
- default?: any;
2246
- required?: boolean | undefined;
2247
- }[];
2248
- persistence: "persistent" | "runtime" | "singleton";
2249
- relations?: {
2250
- type: "belongs_to" | "has_many";
2251
- entity: string;
2252
- alias?: string | undefined;
2253
- }[] | undefined;
2254
- };
2255
- patterns?: string[] | undefined;
2256
- domainContext?: {
2257
- request: string;
2258
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2259
- requestFragment?: string | undefined;
2260
- vocabulary?: Record<string, string> | undefined;
2261
- } | undefined;
2262
- design?: {
2263
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2264
- uxHints?: {
2265
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2266
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2267
- formPattern?: "modal" | "drawer" | "page" | undefined;
2268
- detailPattern?: "split" | "drawer" | "page" | undefined;
2269
- } | undefined;
2270
- } | undefined;
2271
- emits?: string[] | undefined;
2272
- listens?: {
2273
- event: string;
2274
- triggers: string;
2275
- }[] | undefined;
2276
- };
2277
- orbitalIndex: number;
2278
- totalOrbitals: number;
2279
- }, {
2280
- sessionId: string;
2281
- orbital: {
2282
- pages: {
2283
- path: string;
2284
- name: string;
2285
- viewType: string;
2286
- isInitial?: boolean | undefined;
2287
- }[];
2288
- traits: string[];
2289
- name: string;
2290
- entity: {
2291
- name: string;
2292
- fields: {
2293
- type: string;
2294
- name: string;
2295
- default?: any;
2296
- required?: boolean | undefined;
2297
- }[];
2298
- persistence: "persistent" | "runtime" | "singleton";
2299
- relations?: {
2300
- type: "belongs_to" | "has_many";
2301
- entity: string;
2302
- alias?: string | undefined;
2303
- }[] | undefined;
2304
- };
2305
- patterns?: string[] | undefined;
2306
- domainContext?: {
2307
- request: string;
2308
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2309
- requestFragment?: string | undefined;
2310
- vocabulary?: Record<string, string> | undefined;
2311
- } | undefined;
2312
- design?: {
2313
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2314
- uxHints?: {
2315
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2316
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2317
- formPattern?: "modal" | "drawer" | "page" | undefined;
2318
- detailPattern?: "split" | "drawer" | "page" | undefined;
2319
- } | undefined;
2320
- } | undefined;
2321
- emits?: string[] | undefined;
2322
- listens?: {
2323
- event: string;
2324
- triggers: string;
2325
- }[] | undefined;
2326
- };
2327
- orbitalIndex: number;
2328
- totalOrbitals: number;
2329
- }>, {
2330
- sessionId: string;
2331
- orbital: {
2332
- pages: {
2333
- path: string;
2334
- name: string;
2335
- viewType: string;
2336
- isInitial?: boolean | undefined;
2337
- }[];
2338
- traits: string[];
2339
- name: string;
2340
- entity: {
2341
- name: string;
2342
- fields: {
2343
- type: string;
2344
- name: string;
2345
- default?: any;
2346
- required?: boolean | undefined;
2347
- }[];
2348
- persistence: "persistent" | "runtime" | "singleton";
2349
- relations?: {
2350
- type: "belongs_to" | "has_many";
2351
- entity: string;
2352
- alias?: string | undefined;
2353
- }[] | undefined;
2354
- };
2355
- patterns?: string[] | undefined;
2356
- domainContext?: {
2357
- request: string;
2358
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2359
- requestFragment?: string | undefined;
2360
- vocabulary?: Record<string, string> | undefined;
2361
- } | undefined;
2362
- design?: {
2363
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2364
- uxHints?: {
2365
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2366
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2367
- formPattern?: "modal" | "drawer" | "page" | undefined;
2368
- detailPattern?: "split" | "drawer" | "page" | undefined;
2369
- } | undefined;
2370
- } | undefined;
2371
- emits?: string[] | undefined;
2372
- listens?: {
2373
- event: string;
2374
- triggers: string;
2375
- }[] | undefined;
2376
- };
2377
- orbitalIndex: number;
2378
- totalOrbitals: number;
2379
- }, {
2380
- sessionId: string;
2381
- orbital: {
2382
- pages: {
2383
- path: string;
2384
- name: string;
2385
- viewType: string;
2386
- isInitial?: boolean | undefined;
2387
- }[];
2388
- traits: string[];
2389
- name: string;
2390
- entity: {
2391
- name: string;
2392
- fields: {
2393
- type: string;
2394
- name: string;
2395
- default?: any;
2396
- required?: boolean | undefined;
2397
- }[];
2398
- persistence: "persistent" | "runtime" | "singleton";
2399
- relations?: {
2400
- type: "belongs_to" | "has_many";
2401
- entity: string;
2402
- alias?: string | undefined;
2403
- }[] | undefined;
2404
- };
2405
- patterns?: string[] | undefined;
2406
- domainContext?: {
2407
- request: string;
2408
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2409
- requestFragment?: string | undefined;
2410
- vocabulary?: Record<string, string> | undefined;
2411
- } | undefined;
2412
- design?: {
2413
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2414
- uxHints?: {
2415
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2416
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2417
- formPattern?: "modal" | "drawer" | "page" | undefined;
2418
- detailPattern?: "split" | "drawer" | "page" | undefined;
2419
- } | undefined;
2420
- } | undefined;
2421
- emits?: string[] | undefined;
2422
- listens?: {
2423
- event: string;
2424
- triggers: string;
2425
- }[] | undefined;
2426
- };
2427
- orbitalIndex: number;
2428
- totalOrbitals: number;
2429
- }, string, "generate_orbital_domain">;
2430
- constructCombinedDomain: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2431
- appName: zod.ZodString;
2432
- }, "strip", zod.ZodTypeAny, {
2433
- appName: string;
2434
- }, {
2435
- appName: string;
2436
- }>, {
2437
- appName: string;
2438
- }, {
2439
- appName: string;
2440
- }, string, "construct_combined_domain">;
2441
- setEventCallback: (callback: DomainOrbitalEventCallback) => void;
2442
- setCompleteCallback: (callback: DomainOrbitalCompleteCallback) => void;
2443
- };
2444
- schemaChunking: {
2445
- querySchemaStructure: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2446
- file: zod.ZodString;
2447
- }, "strip", zod.ZodTypeAny, {
2448
- file: string;
2449
- }, {
2450
- file: string;
2451
- }>, {
2452
- file: string;
2453
- }, {
2454
- file: string;
2455
- }, string, "query_schema_structure">;
2456
- extractChunk: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2457
- file: zod.ZodString;
2458
- type: zod.ZodEnum<["orbital", "trait", "inline-trait"]>;
2459
- name: zod.ZodString;
2460
- parentOrbital: zod.ZodOptional<zod.ZodString>;
2461
- includeTraits: zod.ZodDefault<zod.ZodBoolean>;
2462
- }, "strip", zod.ZodTypeAny, {
2463
- type: "orbital" | "trait" | "inline-trait";
2464
- name: string;
2465
- file: string;
2466
- includeTraits: boolean;
2467
- parentOrbital?: string | undefined;
2468
- }, {
2469
- type: "orbital" | "trait" | "inline-trait";
2470
- name: string;
2471
- file: string;
2472
- parentOrbital?: string | undefined;
2473
- includeTraits?: boolean | undefined;
2474
- }>, {
2475
- type: "orbital" | "trait" | "inline-trait";
2476
- name: string;
2477
- file: string;
2478
- includeTraits: boolean;
2479
- parentOrbital?: string | undefined;
2480
- }, {
2481
- type: "orbital" | "trait" | "inline-trait";
2482
- name: string;
2483
- file: string;
2484
- parentOrbital?: string | undefined;
2485
- includeTraits?: boolean | undefined;
2486
- }, string, "extract_chunk">;
2487
- applyChunk: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2488
- chunkId: zod.ZodString;
2489
- }, "strip", zod.ZodTypeAny, {
2490
- chunkId: string;
2491
- }, {
2492
- chunkId: string;
2493
- }>, {
2494
- chunkId: string;
2495
- }, {
2496
- chunkId: string;
2497
- }, string, "apply_chunk">;
2498
- };
2499
- };
2500
-
2501
- export { AuditLog as A, type BatchCompleteCallback as B, createGitHubToolsArray as C, createOrbitalBatchSubagentTool as D, createOrchestratedFixingTool as E, createOrchestratedGenerationTool as F, type GitHubToolsConfig as G, createValidateTool as H, type OrbitalUnit as O, type SubagentEventCallback as S, type TraitCompleteCallback as T, type OrbitalGenerationOptions as a, type OrbitalGenerationResult as b, type AuditEntry as c, type TraitEventCallback as d, type TraitSpec as e, type TraitSubagentToolOptions as f, createAgentTools as g, createApplyChunkTool as h, createCombineSchemasTool as i, createExecuteTool as j, createExtractChunkTool as k, createFinishTaskTool as l, createGenerateSchemaTool as m, createQuerySchemaStructureTool as n, createSchemaChunkingTools as o, createTraitEventWrapper as p, createTraitSubagentTool as q, createValidateSchemaTool as r, type OrbitalBatchSubagentToolOptions as s, type OrchestratedFixingOptions as t, type OrchestratedFixingResult as u, validateCommandPaths as v, type OrchestratedGenerationOptions as w, type OrchestratedGenerationResult as x, createComplexityCheckTool as y, createGitHubTools as z };