@hexabot-ai/agentic 3.2.3 → 3.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-compiler.d.ts","sourceRoot":"","sources":["../../src/workflow-compiler.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAMlE,OAAO,KAAK,EAIV,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EAIV,gBAAgB,EAIjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG;IACzD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC,CAAC;AA8PF,+EAA+E;AAC/E,eAAO,MAAM,eAAe,GAC1B,YAAY,kBAAkB,EAC9B,SAAS,sBAAsB,KAC9B,gBAcF,CAAC"}
1
+ {"version":3,"file":"workflow-compiler.d.ts","sourceRoot":"","sources":["../../src/workflow-compiler.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAMlE,OAAO,KAAK,EAIV,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAIrB,OAAO,KAAK,EAIV,gBAAgB,EAIjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG;IACzD,OAAO,EAAE,MAAM,CAAC,MAAM,EA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+1,6 @@
1
1
  {
2
2
  "name": "@hexabot-ai/agentic",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "Schemas and utilities for the Hexabot agentic workflow DSL.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -11,6 +11,7 @@ import { parse as parseYaml } from 'yaml';
11
11
  import { z } from 'zod';
12
12
 
13
13
  import { validateWorkflow } from '../dsl.types';
14
+ import { issueMessages } from '../validation-issue';
14
15
 
15
16
  import { mergeTaskDefs } from './test-helpers';
16
17
 
@@ -111,7 +112,7 @@ describe('validateWorkflow', () => {
111
112
 
112
113
  expect(result.success).toBe(false);
113
114
  if (!result.success) {
114
- expect(result.errors.length).toBeGreaterThan(0);
115
+ expect(result.issues.length).toBeGreaterThan(0);
115
116
  }
116
117
  });
117
118
 
@@ -132,7 +133,7 @@ describe('validateWorkflow', () => {
132
133
 
133
134
  expect(result.success).toBe(false);
134
135
  if (!result.success) {
135
- expect(result.errors.length).toBeGreaterThan(0);
136
+ expect(result.issues.length).toBeGreaterThan(0);
136
137
  }
137
138
  });
138
139
 
@@ -151,7 +152,7 @@ describe('validateWorkflow', () => {
151
152
 
152
153
  expect(result.success).toBe(false);
153
154
  if (!result.success) {
154
- expect(result.errors.length).toBeGreaterThan(0);
155
+ expect(result.issues.length).toBeGreaterThan(0);
155
156
  }
156
157
  });
157
158
 
@@ -178,7 +179,7 @@ describe('validateWorkflow', () => {
178
179
 
179
180
  expect(result.success).toBe(false);
180
181
  if (!result.success) {
181
- expect(result.errors[0]).toMatch(/non_existent_task/);
182
+ expect(result.issues[0].message).toMatch(/non_existent_task/);
182
183
  }
183
184
  });
184
185
 
@@ -202,7 +203,9 @@ describe('validateWorkflow', () => {
202
203
  expect(result.success).toBe(false);
203
204
  if (!result.success) {
204
205
  expect(
205
- result.errors.some((err) => err.includes('Expression strings')),
206
+ result.issues.some((issue) =>
207
+ issue.message.includes('Expression strings'),
208
+ ),
206
209
  ).toBe(true);
207
210
  }
208
211
  });
@@ -292,8 +295,8 @@ describe('validateWorkflow', () => {
292
295
  expect(result.success).toBe(false);
293
296
  if (!result.success) {
294
297
  expect(
295
- result.errors.some((error) =>
296
- error.includes(
298
+ result.issues.some((issue) =>
299
+ issue.message.includes(
297
300
  'Expected a single def reference string for binding kind "model"',
298
301
  ),
299
302
  ),
@@ -328,8 +331,8 @@ describe('validateWorkflow', () => {
328
331
  expect(result.success).toBe(false);
329
332
  if (!result.success) {
330
333
  expect(
331
- result.errors.some((error) =>
332
- error.includes(
334
+ result.issues.some((issue) =>
335
+ issue.message.includes(
333
336
  'Expected an array of def references for binding kind "tools"',
334
337
  ),
335
338
  ),
@@ -358,7 +361,7 @@ describe('validateWorkflow', () => {
358
361
  expect(result.success).toBe(false);
359
362
  if (!result.success) {
360
363
  expect(
361
- result.errors.some((error) => error.includes('missing_tool')),
364
+ result.issues.some((issue) => issue.message.includes('missing_tool')),
362
365
  ).toBe(true);
363
366
  }
364
367
  });
@@ -389,7 +392,9 @@ describe('validateWorkflow', () => {
389
392
  expect(result.success).toBe(false);
390
393
  if (!result.success) {
391
394
  expect(
392
- result.errors.some((error) => error.includes('cannot be mounted as')),
395
+ result.issues.some((issue) =>
396
+ issue.message.includes('cannot be mounted as'),
397
+ ),
393
398
  ).toBe(true);
394
399
  }
395
400
  });
@@ -419,7 +424,9 @@ describe('validateWorkflow', () => {
419
424
  expect(result.success).toBe(false);
420
425
  if (!result.success) {
421
426
  expect(
422
- result.errors.some((error) => error.includes('Unknown binding kind')),
427
+ result.issues.some((issue) =>
428
+ issue.message.includes('Unknown binding kind'),
429
+ ),
423
430
  ).toBe(true);
424
431
  }
425
432
  });
@@ -451,8 +458,8 @@ describe('validateWorkflow', () => {
451
458
  expect(result.success).toBe(false);
452
459
  if (!result.success) {
453
460
  expect(
454
- result.errors.some((error) =>
455
- error.includes('defs.agent_step.bindings.mcp_server'),
461
+ result.issues.some((issue) =>
462
+ issue.message.includes('defs.agent_step.bindings.mcp_server'),
456
463
  ),
457
464
  ).toBe(true);
458
465
  }
@@ -485,7 +492,7 @@ describe('validateWorkflow', () => {
485
492
  expect(result.success).toBe(false);
486
493
  if (!result.success) {
487
494
  expect(
488
- result.errors.some((error) => error.includes('bindingKinds')),
495
+ result.issues.some((issue) => issue.message.includes('bindingKinds')),
489
496
  ).toBe(true);
490
497
  }
491
498
  });
@@ -517,10 +524,221 @@ describe('validateWorkflow', () => {
517
524
  expect(result.success).toBe(false);
518
525
  if (!result.success) {
519
526
  expect(
520
- result.errors.some((error) =>
521
- error.includes('Duplicate def reference'),
527
+ result.issues.some((issue) =>
528
+ issue.message.includes('Duplicate def reference'),
522
529
  ),
523
530
  ).toBe(true);
524
531
  }
525
532
  });
533
+
534
+ describe('structured issues', () => {
535
+ it('reports missing required action inputs and settings', () => {
536
+ const workflow = {
537
+ defs: mergeTaskDefs({
538
+ send_message_task: {
539
+ action: 'send_message',
540
+ },
541
+ }),
542
+ flow: [{ do: 'send_message_task' }],
543
+ outputs: { result: '=$output.send_message_task' },
544
+ };
545
+ const result = validateWorkflow(workflow, {
546
+ bindingKinds,
547
+ actions: {
548
+ send_message: {
549
+ inputSchema: z.strictObject({ recipient: z.string() }),
550
+ settingSchema: z.strictObject({ channel: z.string() }),
551
+ },
552
+ },
553
+ });
554
+
555
+ expect(result.success).toBe(false);
556
+ if (!result.success) {
557
+ expect(result.issues).toEqual(
558
+ expect.arrayContaining([
559
+ expect.objectContaining({
560
+ code: 'action_inputs',
561
+ path: ['defs', 'send_message_task', 'inputs', 'recipient'],
562
+ actionName: 'send_message',
563
+ taskId: 'send_message_task',
564
+ }),
565
+ expect.objectContaining({
566
+ code: 'action_settings',
567
+ path: ['defs', 'send_message_task', 'settings', 'channel'],
568
+ actionName: 'send_message',
569
+ taskId: 'send_message_task',
570
+ }),
571
+ ]),
572
+ );
573
+ }
574
+ });
575
+
576
+ it('merges workflow defaults before validating action settings', () => {
577
+ const workflow = {
578
+ defaults: {
579
+ settings: {
580
+ delivery: { channel: 'sms' },
581
+ },
582
+ },
583
+ defs: mergeTaskDefs({
584
+ send_message_task: {
585
+ action: 'send_message',
586
+ settings: { delivery: { region: 'eu' } },
587
+ },
588
+ }),
589
+ flow: [{ do: 'send_message_task' }],
590
+ outputs: { result: '=$output.send_message_task' },
591
+ };
592
+ const result = validateWorkflow(workflow, {
593
+ bindingKinds,
594
+ actions: {
595
+ send_message: {
596
+ inputSchema: z.strictObject({}),
597
+ settingSchema: z.strictObject({
598
+ delivery: z.strictObject({
599
+ channel: z.string(),
600
+ region: z.string(),
601
+ }),
602
+ }),
603
+ },
604
+ },
605
+ });
606
+
607
+ expect(result.success).toBe(true);
608
+ });
609
+
610
+ it('defers action schema type checks for JSONata expressions', () => {
611
+ const workflow = {
612
+ defs: mergeTaskDefs({
613
+ retry_task: {
614
+ action: 'retry_action',
615
+ inputs: { retry_count: '=$input.retries' },
616
+ settings: { threshold: '=$context.threshold' },
617
+ },
618
+ }),
619
+ flow: [{ do: 'retry_task' }],
620
+ outputs: { result: '=$output.retry_task' },
621
+ };
622
+ const result = validateWorkflow(workflow, {
623
+ bindingKinds,
624
+ actions: {
625
+ retry_action: {
626
+ inputSchema: z.strictObject({ retry_count: z.number() }),
627
+ settingSchema: z.strictObject({ threshold: z.number() }),
628
+ },
629
+ },
630
+ });
631
+
632
+ expect(result.success).toBe(true);
633
+ });
634
+
635
+ it('reports missing actions with code, actionName and path', () => {
636
+ const workflow = {
637
+ defs: mergeTaskDefs({
638
+ agent_step: {
639
+ action: 'not_installed_action',
640
+ },
641
+ }),
642
+ flow: [{ do: 'agent_step' }],
643
+ outputs: { result: '=$output.agent_step' },
644
+ };
645
+ const result = validateWorkflow(workflow, {
646
+ bindingKinds,
647
+ actions: {},
648
+ });
649
+
650
+ expect(result.success).toBe(false);
651
+ if (!result.success) {
652
+ expect(result.issues).toEqual([
653
+ {
654
+ code: 'missing_action',
655
+ message:
656
+ 'defs.agent_step.action: No action implementation provided for "not_installed_action".',
657
+ path: ['defs', 'agent_step', 'action'],
658
+ actionName: 'not_installed_action',
659
+ },
660
+ ]);
661
+ }
662
+ });
663
+
664
+ it('reports unknown task references per task with paths', () => {
665
+ const parsed = parseYaml(fixtureYaml) as Record<string, unknown>;
666
+ parsed.flow = [
667
+ { do: 'non_existent_task' },
668
+ { parallel: { steps: [{ do: 'other_missing_task' }] } },
669
+ { do: 'non_existent_task' },
670
+ ];
671
+
672
+ const result = validateWorkflow(parsed, { bindingKinds });
673
+
674
+ expect(result.success).toBe(false);
675
+ if (!result.success) {
676
+ const unknownTasks = result.issues.filter(
677
+ (issue) => issue.code === 'unknown_task',
678
+ );
679
+
680
+ expect(unknownTasks).toEqual([
681
+ {
682
+ code: 'unknown_task',
683
+ message: 'Unknown task(s) referenced in flow: non_existent_task',
684
+ path: ['flow', 0, 'do'],
685
+ taskId: 'non_existent_task',
686
+ },
687
+ {
688
+ code: 'unknown_task',
689
+ message: 'Unknown task(s) referenced in flow: other_missing_task',
690
+ path: ['flow', 1, 'parallel', 'steps', 0, 'do'],
691
+ taskId: 'other_missing_task',
692
+ },
693
+ ]);
694
+ }
695
+ });
696
+
697
+ it('reports schema issues with the zod path', () => {
698
+ const parsed = parseYaml(fixtureYaml) as Record<string, unknown>;
699
+ parsed.flow = [
700
+ {
701
+ loop: {
702
+ type: 'while',
703
+ steps: [],
704
+ },
705
+ },
706
+ ];
707
+
708
+ const result = validateWorkflow(parsed, { bindingKinds });
709
+
710
+ expect(result.success).toBe(false);
711
+ if (!result.success) {
712
+ expect(result.issues.length).toBeGreaterThan(0);
713
+ expect(result.issues.every((issue) => issue.code === 'schema')).toBe(
714
+ true,
715
+ );
716
+ expect(result.issues[0].path?.[0]).toBe('flow');
717
+ }
718
+ });
719
+
720
+ it('derives flat human-readable messages via issueMessages', () => {
721
+ const workflow = {
722
+ defs: mergeTaskDefs({
723
+ agent_step: {
724
+ action: 'not_installed_action',
725
+ },
726
+ }),
727
+ flow: [{ do: 'agent_step' }, { do: 'ghost_task' }],
728
+ outputs: { result: '=$output.agent_step' },
729
+ };
730
+ const result = validateWorkflow(workflow, {
731
+ bindingKinds,
732
+ actions: {},
733
+ });
734
+
735
+ expect(result.success).toBe(false);
736
+ if (!result.success) {
737
+ expect(issueMessages(result.issues)).toEqual([
738
+ 'Unknown task(s) referenced in flow: ghost_task',
739
+ 'defs.agent_step.action: No action implementation provided for "not_installed_action".',
740
+ ]);
741
+ }
742
+ });
743
+ });
526
744
  });