@almadar/agent 2.0.2 → 2.0.3

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.
@@ -165,13 +165,13 @@ export declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalT
165
165
  category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
166
166
  vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
167
167
  }, "strip", z.ZodTypeAny, {
168
- request: string;
169
168
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
169
+ request: string;
170
170
  requestFragment?: string | undefined;
171
171
  vocabulary?: Record<string, string> | undefined;
172
172
  }, {
173
- request: string;
174
173
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
174
+ request: string;
175
175
  requestFragment?: string | undefined;
176
176
  vocabulary?: Record<string, string> | undefined;
177
177
  }>>;
@@ -247,8 +247,8 @@ export declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalT
247
247
  };
248
248
  patterns?: string[] | undefined;
249
249
  domainContext?: {
250
- request: string;
251
250
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
251
+ request: string;
252
252
  requestFragment?: string | undefined;
253
253
  vocabulary?: Record<string, string> | undefined;
254
254
  } | undefined;
@@ -292,8 +292,8 @@ export declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalT
292
292
  };
293
293
  patterns?: string[] | undefined;
294
294
  domainContext?: {
295
- request: string;
296
295
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
296
+ request: string;
297
297
  requestFragment?: string | undefined;
298
298
  vocabulary?: Record<string, string> | undefined;
299
299
  } | undefined;
@@ -342,8 +342,8 @@ export declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalT
342
342
  };
343
343
  patterns?: string[] | undefined;
344
344
  domainContext?: {
345
- request: string;
346
345
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
346
+ request: string;
347
347
  requestFragment?: string | undefined;
348
348
  vocabulary?: Record<string, string> | undefined;
349
349
  } | undefined;
@@ -392,8 +392,8 @@ export declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalT
392
392
  };
393
393
  patterns?: string[] | undefined;
394
394
  domainContext?: {
395
- request: string;
396
395
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
396
+ request: string;
397
397
  requestFragment?: string | undefined;
398
398
  vocabulary?: Record<string, string> | undefined;
399
399
  } | undefined;
@@ -442,8 +442,8 @@ export declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalT
442
442
  };
443
443
  patterns?: string[] | undefined;
444
444
  domainContext?: {
445
- request: string;
446
445
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
446
+ request: string;
447
447
  requestFragment?: string | undefined;
448
448
  vocabulary?: Record<string, string> | undefined;
449
449
  } | undefined;
@@ -492,8 +492,8 @@ export declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalT
492
492
  };
493
493
  patterns?: string[] | undefined;
494
494
  domainContext?: {
495
- request: string;
496
495
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
496
+ request: string;
497
497
  requestFragment?: string | undefined;
498
498
  vocabulary?: Record<string, string> | undefined;
499
499
  } | undefined;
@@ -631,13 +631,13 @@ export declare function createDomainOrbitalTools(options?: DomainOrbitalToolOpti
631
631
  category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
632
632
  vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
633
633
  }, "strip", z.ZodTypeAny, {
634
- request: string;
635
634
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
635
+ request: string;
636
636
  requestFragment?: string | undefined;
637
637
  vocabulary?: Record<string, string> | undefined;
638
638
  }, {
639
- request: string;
640
639
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
640
+ request: string;
641
641
  requestFragment?: string | undefined;
642
642
  vocabulary?: Record<string, string> | undefined;
643
643
  }>>;
@@ -713,8 +713,8 @@ export declare function createDomainOrbitalTools(options?: DomainOrbitalToolOpti
713
713
  };
714
714
  patterns?: string[] | undefined;
715
715
  domainContext?: {
716
- request: string;
717
716
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
717
+ request: string;
718
718
  requestFragment?: string | undefined;
719
719
  vocabulary?: Record<string, string> | undefined;
720
720
  } | undefined;
@@ -758,8 +758,8 @@ export declare function createDomainOrbitalTools(options?: DomainOrbitalToolOpti
758
758
  };
759
759
  patterns?: string[] | undefined;
760
760
  domainContext?: {
761
- request: string;
762
761
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
762
+ request: string;
763
763
  requestFragment?: string | undefined;
764
764
  vocabulary?: Record<string, string> | undefined;
765
765
  } | undefined;
@@ -808,8 +808,8 @@ export declare function createDomainOrbitalTools(options?: DomainOrbitalToolOpti
808
808
  };
809
809
  patterns?: string[] | undefined;
810
810
  domainContext?: {
811
- request: string;
812
811
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
812
+ request: string;
813
813
  requestFragment?: string | undefined;
814
814
  vocabulary?: Record<string, string> | undefined;
815
815
  } | undefined;
@@ -858,8 +858,8 @@ export declare function createDomainOrbitalTools(options?: DomainOrbitalToolOpti
858
858
  };
859
859
  patterns?: string[] | undefined;
860
860
  domainContext?: {
861
- request: string;
862
861
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
862
+ request: string;
863
863
  requestFragment?: string | undefined;
864
864
  vocabulary?: Record<string, string> | undefined;
865
865
  } | undefined;
@@ -908,8 +908,8 @@ export declare function createDomainOrbitalTools(options?: DomainOrbitalToolOpti
908
908
  };
909
909
  patterns?: string[] | undefined;
910
910
  domainContext?: {
911
- request: string;
912
911
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
912
+ request: string;
913
913
  requestFragment?: string | undefined;
914
914
  vocabulary?: Record<string, string> | undefined;
915
915
  } | undefined;
@@ -958,8 +958,8 @@ export declare function createDomainOrbitalTools(options?: DomainOrbitalToolOpti
958
958
  };
959
959
  patterns?: string[] | undefined;
960
960
  domainContext?: {
961
- request: string;
962
961
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
962
+ request: string;
963
963
  requestFragment?: string | undefined;
964
964
  vocabulary?: Record<string, string> | undefined;
965
965
  } | undefined;
@@ -325,13 +325,13 @@ export declare function createAgentTools(workDir: string): {
325
325
  category: import("zod").ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
326
326
  vocabulary: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
327
327
  }, "strip", import("zod").ZodTypeAny, {
328
- request: string;
329
328
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
329
+ request: string;
330
330
  requestFragment?: string | undefined;
331
331
  vocabulary?: Record<string, string> | undefined;
332
332
  }, {
333
- request: string;
334
333
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
334
+ request: string;
335
335
  requestFragment?: string | undefined;
336
336
  vocabulary?: Record<string, string> | undefined;
337
337
  }>>;
@@ -418,8 +418,8 @@ export declare function createAgentTools(workDir: string): {
418
418
  }[] | undefined;
419
419
  patterns?: string[] | undefined;
420
420
  domainContext?: {
421
- request: string;
422
421
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
422
+ request: string;
423
423
  requestFragment?: string | undefined;
424
424
  vocabulary?: Record<string, string> | undefined;
425
425
  } | undefined;
@@ -461,8 +461,8 @@ export declare function createAgentTools(workDir: string): {
461
461
  }[] | undefined;
462
462
  patterns?: string[] | undefined;
463
463
  domainContext?: {
464
- request: string;
465
464
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
465
+ request: string;
466
466
  requestFragment?: string | undefined;
467
467
  vocabulary?: Record<string, string> | undefined;
468
468
  } | undefined;
@@ -508,8 +508,8 @@ export declare function createAgentTools(workDir: string): {
508
508
  }[] | undefined;
509
509
  patterns?: string[] | undefined;
510
510
  domainContext?: {
511
- request: string;
512
511
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
512
+ request: string;
513
513
  requestFragment?: string | undefined;
514
514
  vocabulary?: Record<string, string> | undefined;
515
515
  } | undefined;
@@ -555,8 +555,8 @@ export declare function createAgentTools(workDir: string): {
555
555
  }[] | undefined;
556
556
  patterns?: string[] | undefined;
557
557
  domainContext?: {
558
- request: string;
559
558
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
559
+ request: string;
560
560
  requestFragment?: string | undefined;
561
561
  vocabulary?: Record<string, string> | undefined;
562
562
  } | undefined;
@@ -602,8 +602,8 @@ export declare function createAgentTools(workDir: string): {
602
602
  }[] | undefined;
603
603
  patterns?: string[] | undefined;
604
604
  domainContext?: {
605
- request: string;
606
605
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
606
+ request: string;
607
607
  requestFragment?: string | undefined;
608
608
  vocabulary?: Record<string, string> | undefined;
609
609
  } | undefined;
@@ -649,8 +649,8 @@ export declare function createAgentTools(workDir: string): {
649
649
  }[] | undefined;
650
650
  patterns?: string[] | undefined;
651
651
  domainContext?: {
652
- request: string;
653
652
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
653
+ request: string;
654
654
  requestFragment?: string | undefined;
655
655
  vocabulary?: Record<string, string> | undefined;
656
656
  } | undefined;
@@ -896,13 +896,13 @@ export declare function createAgentTools(workDir: string): {
896
896
  category: import("zod").ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
897
897
  vocabulary: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
898
898
  }, "strip", import("zod").ZodTypeAny, {
899
- request: string;
900
899
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
900
+ request: string;
901
901
  requestFragment?: string | undefined;
902
902
  vocabulary?: Record<string, string> | undefined;
903
903
  }, {
904
- request: string;
905
904
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
905
+ request: string;
906
906
  requestFragment?: string | undefined;
907
907
  vocabulary?: Record<string, string> | undefined;
908
908
  }>>;
@@ -978,8 +978,8 @@ export declare function createAgentTools(workDir: string): {
978
978
  };
979
979
  patterns?: string[] | undefined;
980
980
  domainContext?: {
981
- request: string;
982
981
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
982
+ request: string;
983
983
  requestFragment?: string | undefined;
984
984
  vocabulary?: Record<string, string> | undefined;
985
985
  } | undefined;
@@ -1023,8 +1023,8 @@ export declare function createAgentTools(workDir: string): {
1023
1023
  };
1024
1024
  patterns?: string[] | undefined;
1025
1025
  domainContext?: {
1026
- request: string;
1027
1026
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1027
+ request: string;
1028
1028
  requestFragment?: string | undefined;
1029
1029
  vocabulary?: Record<string, string> | undefined;
1030
1030
  } | undefined;
@@ -1073,8 +1073,8 @@ export declare function createAgentTools(workDir: string): {
1073
1073
  };
1074
1074
  patterns?: string[] | undefined;
1075
1075
  domainContext?: {
1076
- request: string;
1077
1076
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1077
+ request: string;
1078
1078
  requestFragment?: string | undefined;
1079
1079
  vocabulary?: Record<string, string> | undefined;
1080
1080
  } | undefined;
@@ -1123,8 +1123,8 @@ export declare function createAgentTools(workDir: string): {
1123
1123
  };
1124
1124
  patterns?: string[] | undefined;
1125
1125
  domainContext?: {
1126
- request: string;
1127
1126
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1127
+ request: string;
1128
1128
  requestFragment?: string | undefined;
1129
1129
  vocabulary?: Record<string, string> | undefined;
1130
1130
  } | undefined;
@@ -1173,8 +1173,8 @@ export declare function createAgentTools(workDir: string): {
1173
1173
  };
1174
1174
  patterns?: string[] | undefined;
1175
1175
  domainContext?: {
1176
- request: string;
1177
1176
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1177
+ request: string;
1178
1178
  requestFragment?: string | undefined;
1179
1179
  vocabulary?: Record<string, string> | undefined;
1180
1180
  } | undefined;
@@ -1223,8 +1223,8 @@ export declare function createAgentTools(workDir: string): {
1223
1223
  };
1224
1224
  patterns?: string[] | undefined;
1225
1225
  domainContext?: {
1226
- request: string;
1227
1226
  category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1227
+ request: string;
1228
1228
  requestFragment?: string | undefined;
1229
1229
  vocabulary?: Record<string, string> | undefined;
1230
1230
  } | undefined;
@@ -3021,8 +3021,7 @@ function parseBatchResult(data, expectedOrbitals) {
3021
3021
 
3022
3022
  // src/tools/orbital-batch-subagent.ts
3023
3023
  var OrbitalBatchInputSchema = z.object({
3024
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3025
- orbitals: z.array(z.any()).describe("Array of OrbitalUnits to generate"),
3024
+ orbitals: z.array(z.record(z.unknown())).describe("Array of OrbitalUnits to generate"),
3026
3025
  options: z.object({
3027
3026
  mode: z.enum(["single-call", "parallel-individual", "adaptive"]).optional().default("adaptive"),
3028
3027
  batchSize: z.number().optional(),
@@ -3051,14 +3050,15 @@ function createOrbitalBatchSubagentTool(options = {}) {
3051
3050
  }
3052
3051
  };
3053
3052
  const batchTool = tool(
3054
- async ({ orbitals, options: batchOptions }) => {
3055
- if (!orbitals || orbitals.length === 0) {
3053
+ async ({ orbitals: rawOrbitals, options: batchOptions }) => {
3054
+ if (!rawOrbitals || rawOrbitals.length === 0) {
3056
3055
  return JSON.stringify({
3057
3056
  success: false,
3058
3057
  error: "No orbitals provided for batch generation.",
3059
3058
  orbitals: []
3060
3059
  });
3061
3060
  }
3061
+ const orbitals = rawOrbitals;
3062
3062
  console.log(`[OrbitalBatchSubagent] Starting batch generation for ${orbitals.length} orbitals`);
3063
3063
  try {
3064
3064
  emitEvent("batch", 0, 1, "message", {