@adoptai/genui-components 0.1.59 → 0.1.61
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.
- package/dist/builders/BlockForm.d.ts +5 -1
- package/dist/builders/BlockForm.d.ts.map +1 -1
- package/dist/builders/BuilderForm.d.ts +22 -1
- package/dist/builders/BuilderForm.d.ts.map +1 -1
- package/dist/builders/index.d.ts +1 -1
- package/dist/builders/index.d.ts.map +1 -1
- package/dist/composites/decision-card/resolver.cjs +296 -17
- package/dist/composites/decision-card/resolver.cjs.map +1 -1
- package/dist/composites/decision-card/resolver.d.ts +9 -2
- package/dist/composites/decision-card/resolver.d.ts.map +1 -1
- package/dist/composites/decision-card/resolver.js +296 -18
- package/dist/composites/decision-card/resolver.js.map +1 -1
- package/dist/composites/decision-queue/resolver.d.ts +22 -0
- package/dist/composites/decision-queue/resolver.d.ts.map +1 -0
- package/dist/composites/workflow-stepper/resolver.cjs +2 -1
- package/dist/composites/workflow-stepper/resolver.cjs.map +1 -1
- package/dist/composites/workflow-stepper/resolver.js +2 -1
- package/dist/composites/workflow-stepper/resolver.js.map +1 -1
- package/dist/index.cjs +881 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +881 -46
- package/dist/index.js.map +1 -1
- package/dist/renderer.cjs +790 -28
- package/dist/renderer.cjs.map +1 -1
- package/dist/renderer.js +790 -28
- package/dist/renderer.js.map +1 -1
- package/dist/resolver.cjs +790 -28
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +790 -28
- package/dist/resolver.js.map +1 -1
- package/dist/schemas/decision-card.d.ts +37 -0
- package/dist/schemas/decision-card.d.ts.map +1 -1
- package/dist/schemas/decision-queue.d.ts +227 -0
- package/dist/schemas/decision-queue.d.ts.map +1 -0
- package/dist/schemas/index.cjs +191 -5
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.ts +264 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +191 -5
- package/dist/schemas/index.js.map +1 -1
- package/dist/shared/InteractionContext.d.ts +10 -0
- package/dist/shared/InteractionContext.d.ts.map +1 -1
- package/dist/tool-definitions.json +236 -4
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -5492,6 +5492,13 @@ export declare const schemaRegistry: {
|
|
|
5492
5492
|
id: z.ZodOptional<z.ZodString>;
|
|
5493
5493
|
label: z.ZodString;
|
|
5494
5494
|
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
5495
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
5496
|
+
adjust: z.ZodOptional<z.ZodObject<{
|
|
5497
|
+
min: z.ZodNumber;
|
|
5498
|
+
max: z.ZodNumber;
|
|
5499
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
5500
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5501
|
+
}, z.core.$strip>>;
|
|
5495
5502
|
}, z.core.$strip>>;
|
|
5496
5503
|
source: z.ZodOptional<z.ZodObject<{
|
|
5497
5504
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -5499,6 +5506,7 @@ export declare const schemaRegistry: {
|
|
|
5499
5506
|
}, z.core.$strip>>;
|
|
5500
5507
|
resolved: z.ZodOptional<z.ZodObject<{
|
|
5501
5508
|
option: z.ZodString;
|
|
5509
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
5502
5510
|
}, z.core.$strip>>;
|
|
5503
5511
|
}, z.core.$strip>;
|
|
5504
5512
|
tool: {
|
|
@@ -5582,6 +5590,31 @@ export declare const schemaRegistry: {
|
|
|
5582
5590
|
recommended: {
|
|
5583
5591
|
type: string;
|
|
5584
5592
|
};
|
|
5593
|
+
value: {
|
|
5594
|
+
type: string;
|
|
5595
|
+
description: string;
|
|
5596
|
+
};
|
|
5597
|
+
adjust: {
|
|
5598
|
+
type: string;
|
|
5599
|
+
description: string;
|
|
5600
|
+
properties: {
|
|
5601
|
+
min: {
|
|
5602
|
+
type: string;
|
|
5603
|
+
};
|
|
5604
|
+
max: {
|
|
5605
|
+
type: string;
|
|
5606
|
+
};
|
|
5607
|
+
step: {
|
|
5608
|
+
type: string;
|
|
5609
|
+
description: string;
|
|
5610
|
+
};
|
|
5611
|
+
unit: {
|
|
5612
|
+
type: string;
|
|
5613
|
+
description: string;
|
|
5614
|
+
};
|
|
5615
|
+
};
|
|
5616
|
+
required: string[];
|
|
5617
|
+
};
|
|
5585
5618
|
};
|
|
5586
5619
|
required: string[];
|
|
5587
5620
|
};
|
|
@@ -5605,6 +5638,237 @@ export declare const schemaRegistry: {
|
|
|
5605
5638
|
option: {
|
|
5606
5639
|
type: string;
|
|
5607
5640
|
};
|
|
5641
|
+
value: {
|
|
5642
|
+
type: string;
|
|
5643
|
+
description: string;
|
|
5644
|
+
};
|
|
5645
|
+
};
|
|
5646
|
+
required: string[];
|
|
5647
|
+
};
|
|
5648
|
+
};
|
|
5649
|
+
required: string[];
|
|
5650
|
+
};
|
|
5651
|
+
};
|
|
5652
|
+
};
|
|
5653
|
+
"decision-queue": {
|
|
5654
|
+
schema: z.ZodObject<{
|
|
5655
|
+
type: z.ZodLiteral<"decision-queue">;
|
|
5656
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5657
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5658
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5659
|
+
submit_label: z.ZodOptional<z.ZodString>;
|
|
5660
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5661
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5662
|
+
decision_type: z.ZodOptional<z.ZodString>;
|
|
5663
|
+
title: z.ZodString;
|
|
5664
|
+
question: z.ZodString;
|
|
5665
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
5666
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
5667
|
+
amount_label: z.ZodOptional<z.ZodString>;
|
|
5668
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
5669
|
+
high: "high";
|
|
5670
|
+
medium: "medium";
|
|
5671
|
+
low: "low";
|
|
5672
|
+
}>>;
|
|
5673
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5674
|
+
field: z.ZodOptional<z.ZodString>;
|
|
5675
|
+
issue: z.ZodString;
|
|
5676
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
5677
|
+
high: "high";
|
|
5678
|
+
medium: "medium";
|
|
5679
|
+
low: "low";
|
|
5680
|
+
}>>;
|
|
5681
|
+
}, z.core.$strip>>>;
|
|
5682
|
+
options: z.ZodArray<z.ZodObject<{
|
|
5683
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5684
|
+
label: z.ZodString;
|
|
5685
|
+
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
5686
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
5687
|
+
adjust: z.ZodOptional<z.ZodObject<{
|
|
5688
|
+
min: z.ZodNumber;
|
|
5689
|
+
max: z.ZodNumber;
|
|
5690
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
5691
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
5692
|
+
}, z.core.$strip>>;
|
|
5693
|
+
}, z.core.$strip>>;
|
|
5694
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
5695
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5696
|
+
url: z.ZodOptional<z.ZodString>;
|
|
5697
|
+
}, z.core.$strip>>;
|
|
5698
|
+
}, z.core.$strip>>;
|
|
5699
|
+
resolved: z.ZodOptional<z.ZodObject<{
|
|
5700
|
+
decisions: z.ZodArray<z.ZodObject<{
|
|
5701
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5702
|
+
title: z.ZodString;
|
|
5703
|
+
option: z.ZodString;
|
|
5704
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
5705
|
+
}, z.core.$strip>>;
|
|
5706
|
+
}, z.core.$strip>>;
|
|
5707
|
+
}, z.core.$strip>;
|
|
5708
|
+
tool: {
|
|
5709
|
+
name: string;
|
|
5710
|
+
description: string;
|
|
5711
|
+
input_schema: {
|
|
5712
|
+
type: "object";
|
|
5713
|
+
properties: {
|
|
5714
|
+
type: {
|
|
5715
|
+
type: string;
|
|
5716
|
+
enum: string[];
|
|
5717
|
+
};
|
|
5718
|
+
id: {
|
|
5719
|
+
type: string;
|
|
5720
|
+
description: string;
|
|
5721
|
+
};
|
|
5722
|
+
title: {
|
|
5723
|
+
type: string;
|
|
5724
|
+
description: string;
|
|
5725
|
+
};
|
|
5726
|
+
description: {
|
|
5727
|
+
type: string;
|
|
5728
|
+
description: string;
|
|
5729
|
+
};
|
|
5730
|
+
submit_label: {
|
|
5731
|
+
type: string;
|
|
5732
|
+
description: string;
|
|
5733
|
+
};
|
|
5734
|
+
items: {
|
|
5735
|
+
type: string;
|
|
5736
|
+
minItems: number;
|
|
5737
|
+
maxItems: number;
|
|
5738
|
+
description: string;
|
|
5739
|
+
items: {
|
|
5740
|
+
type: string;
|
|
5741
|
+
properties: {
|
|
5742
|
+
id: {
|
|
5743
|
+
type: string;
|
|
5744
|
+
};
|
|
5745
|
+
decision_type: {
|
|
5746
|
+
type: string;
|
|
5747
|
+
description: string;
|
|
5748
|
+
};
|
|
5749
|
+
title: {
|
|
5750
|
+
type: string;
|
|
5751
|
+
};
|
|
5752
|
+
question: {
|
|
5753
|
+
type: string;
|
|
5754
|
+
};
|
|
5755
|
+
amount: {
|
|
5756
|
+
type: string;
|
|
5757
|
+
};
|
|
5758
|
+
currency: {
|
|
5759
|
+
type: string;
|
|
5760
|
+
};
|
|
5761
|
+
amount_label: {
|
|
5762
|
+
type: string;
|
|
5763
|
+
};
|
|
5764
|
+
severity: {
|
|
5765
|
+
type: string;
|
|
5766
|
+
enum: string[];
|
|
5767
|
+
};
|
|
5768
|
+
flags: {
|
|
5769
|
+
type: string;
|
|
5770
|
+
maxItems: number;
|
|
5771
|
+
items: {
|
|
5772
|
+
type: string;
|
|
5773
|
+
properties: {
|
|
5774
|
+
field: {
|
|
5775
|
+
type: string;
|
|
5776
|
+
};
|
|
5777
|
+
issue: {
|
|
5778
|
+
type: string;
|
|
5779
|
+
};
|
|
5780
|
+
severity: {
|
|
5781
|
+
type: string;
|
|
5782
|
+
enum: string[];
|
|
5783
|
+
};
|
|
5784
|
+
};
|
|
5785
|
+
required: string[];
|
|
5786
|
+
};
|
|
5787
|
+
};
|
|
5788
|
+
options: {
|
|
5789
|
+
type: string;
|
|
5790
|
+
minItems: number;
|
|
5791
|
+
maxItems: number;
|
|
5792
|
+
items: {
|
|
5793
|
+
type: string;
|
|
5794
|
+
properties: {
|
|
5795
|
+
id: {
|
|
5796
|
+
type: string;
|
|
5797
|
+
};
|
|
5798
|
+
label: {
|
|
5799
|
+
type: string;
|
|
5800
|
+
};
|
|
5801
|
+
recommended: {
|
|
5802
|
+
type: string;
|
|
5803
|
+
};
|
|
5804
|
+
value: {
|
|
5805
|
+
type: string;
|
|
5806
|
+
description: string;
|
|
5807
|
+
};
|
|
5808
|
+
adjust: {
|
|
5809
|
+
type: string;
|
|
5810
|
+
description: string;
|
|
5811
|
+
properties: {
|
|
5812
|
+
min: {
|
|
5813
|
+
type: string;
|
|
5814
|
+
};
|
|
5815
|
+
max: {
|
|
5816
|
+
type: string;
|
|
5817
|
+
};
|
|
5818
|
+
step: {
|
|
5819
|
+
type: string;
|
|
5820
|
+
};
|
|
5821
|
+
unit: {
|
|
5822
|
+
type: string;
|
|
5823
|
+
description: string;
|
|
5824
|
+
};
|
|
5825
|
+
};
|
|
5826
|
+
required: string[];
|
|
5827
|
+
};
|
|
5828
|
+
};
|
|
5829
|
+
required: string[];
|
|
5830
|
+
};
|
|
5831
|
+
};
|
|
5832
|
+
source: {
|
|
5833
|
+
type: string;
|
|
5834
|
+
properties: {
|
|
5835
|
+
label: {
|
|
5836
|
+
type: string;
|
|
5837
|
+
};
|
|
5838
|
+
url: {
|
|
5839
|
+
type: string;
|
|
5840
|
+
};
|
|
5841
|
+
};
|
|
5842
|
+
};
|
|
5843
|
+
};
|
|
5844
|
+
required: string[];
|
|
5845
|
+
};
|
|
5846
|
+
};
|
|
5847
|
+
resolved: {
|
|
5848
|
+
type: string;
|
|
5849
|
+
description: string;
|
|
5850
|
+
properties: {
|
|
5851
|
+
decisions: {
|
|
5852
|
+
type: string;
|
|
5853
|
+
items: {
|
|
5854
|
+
type: string;
|
|
5855
|
+
properties: {
|
|
5856
|
+
id: {
|
|
5857
|
+
type: string;
|
|
5858
|
+
};
|
|
5859
|
+
title: {
|
|
5860
|
+
type: string;
|
|
5861
|
+
};
|
|
5862
|
+
option: {
|
|
5863
|
+
type: string;
|
|
5864
|
+
};
|
|
5865
|
+
value: {
|
|
5866
|
+
type: string;
|
|
5867
|
+
};
|
|
5868
|
+
};
|
|
5869
|
+
required: string[];
|
|
5870
|
+
};
|
|
5871
|
+
};
|
|
5608
5872
|
};
|
|
5609
5873
|
required: string[];
|
|
5610
5874
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8DxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH4C,CAAC;AAEnE,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,OAAO,cAAc,IAC7D,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -3701,7 +3701,14 @@ var decisionCardSchema = z.object({
|
|
|
3701
3701
|
z.object({
|
|
3702
3702
|
id: z.string().optional(),
|
|
3703
3703
|
label: z.string(),
|
|
3704
|
-
recommended: z.boolean().optional()
|
|
3704
|
+
recommended: z.boolean().optional(),
|
|
3705
|
+
value: z.number().optional(),
|
|
3706
|
+
adjust: z.object({
|
|
3707
|
+
min: z.number(),
|
|
3708
|
+
max: z.number(),
|
|
3709
|
+
step: z.number().optional(),
|
|
3710
|
+
unit: z.string().optional()
|
|
3711
|
+
}).optional()
|
|
3705
3712
|
})
|
|
3706
3713
|
).min(1).max(5),
|
|
3707
3714
|
source: z.object({
|
|
@@ -3709,7 +3716,8 @@ var decisionCardSchema = z.object({
|
|
|
3709
3716
|
url: z.string().optional()
|
|
3710
3717
|
}).optional(),
|
|
3711
3718
|
resolved: z.object({
|
|
3712
|
-
option: z.string()
|
|
3719
|
+
option: z.string(),
|
|
3720
|
+
value: z.number().optional()
|
|
3713
3721
|
}).optional()
|
|
3714
3722
|
});
|
|
3715
3723
|
var decisionCardTool = {
|
|
@@ -3752,13 +3760,28 @@ var decisionCardTool = {
|
|
|
3752
3760
|
type: "array",
|
|
3753
3761
|
minItems: 1,
|
|
3754
3762
|
maxItems: 5,
|
|
3755
|
-
description: "Mutually-exclusive resolution choices; mark one `recommended` to make it primary",
|
|
3763
|
+
description: "Mutually-exclusive resolution choices; mark one `recommended` to make it primary. An option that carries a numeric figure the user may want to tune (e.g. 'Book reserve' at 50 units) should set `value` (your suggested figure) and `adjust` ({min,max[,step,unit]}) \u2014 the card then lets the user fine-tune the number within that range before confirming.",
|
|
3756
3764
|
items: {
|
|
3757
3765
|
type: "object",
|
|
3758
3766
|
properties: {
|
|
3759
3767
|
id: { type: "string" },
|
|
3760
3768
|
label: { type: "string" },
|
|
3761
|
-
recommended: { type: "boolean" }
|
|
3769
|
+
recommended: { type: "boolean" },
|
|
3770
|
+
value: {
|
|
3771
|
+
type: "number",
|
|
3772
|
+
description: "Suggested numeric figure for this option (the starting point of the adjuster)"
|
|
3773
|
+
},
|
|
3774
|
+
adjust: {
|
|
3775
|
+
type: "object",
|
|
3776
|
+
description: "Allow the user to tune `value` within this inclusive range before resolving",
|
|
3777
|
+
properties: {
|
|
3778
|
+
min: { type: "number" },
|
|
3779
|
+
max: { type: "number" },
|
|
3780
|
+
step: { type: "number", description: "Increment granularity; defaults to a sensible step for the range" },
|
|
3781
|
+
unit: { type: "string", description: "Short unit suffix shown after the number, e.g. 'units', '%', 'hrs'" }
|
|
3782
|
+
},
|
|
3783
|
+
required: ["min", "max"]
|
|
3784
|
+
}
|
|
3762
3785
|
},
|
|
3763
3786
|
required: ["label"]
|
|
3764
3787
|
}
|
|
@@ -3775,7 +3798,8 @@ var decisionCardTool = {
|
|
|
3775
3798
|
type: "object",
|
|
3776
3799
|
description: "Pre-resolved state for transcript replay",
|
|
3777
3800
|
properties: {
|
|
3778
|
-
option: { type: "string" }
|
|
3801
|
+
option: { type: "string" },
|
|
3802
|
+
value: { type: "number", description: "Adjusted figure the user confirmed, when the option was adjustable" }
|
|
3779
3803
|
},
|
|
3780
3804
|
required: ["option"]
|
|
3781
3805
|
}
|
|
@@ -3783,6 +3807,167 @@ var decisionCardTool = {
|
|
|
3783
3807
|
required: ["type", "title", "question", "options"]
|
|
3784
3808
|
}
|
|
3785
3809
|
};
|
|
3810
|
+
var decisionQueueItemSchema = z.object({
|
|
3811
|
+
id: z.string().optional(),
|
|
3812
|
+
decision_type: z.string().optional(),
|
|
3813
|
+
title: z.string(),
|
|
3814
|
+
question: z.string(),
|
|
3815
|
+
amount: z.number().optional(),
|
|
3816
|
+
currency: z.string().optional(),
|
|
3817
|
+
amount_label: z.string().optional(),
|
|
3818
|
+
severity: z.enum(["low", "medium", "high"]).optional(),
|
|
3819
|
+
flags: z.array(
|
|
3820
|
+
z.object({
|
|
3821
|
+
field: z.string().optional(),
|
|
3822
|
+
issue: z.string(),
|
|
3823
|
+
severity: z.enum(["low", "medium", "high"]).optional()
|
|
3824
|
+
})
|
|
3825
|
+
).max(6).optional(),
|
|
3826
|
+
options: z.array(
|
|
3827
|
+
z.object({
|
|
3828
|
+
id: z.string().optional(),
|
|
3829
|
+
label: z.string(),
|
|
3830
|
+
recommended: z.boolean().optional(),
|
|
3831
|
+
value: z.number().optional(),
|
|
3832
|
+
adjust: z.object({
|
|
3833
|
+
min: z.number(),
|
|
3834
|
+
max: z.number(),
|
|
3835
|
+
step: z.number().optional(),
|
|
3836
|
+
unit: z.string().optional()
|
|
3837
|
+
}).optional()
|
|
3838
|
+
})
|
|
3839
|
+
).min(1).max(5),
|
|
3840
|
+
source: z.object({
|
|
3841
|
+
label: z.string().optional(),
|
|
3842
|
+
url: z.string().optional()
|
|
3843
|
+
}).optional()
|
|
3844
|
+
});
|
|
3845
|
+
var decisionQueueSchema = z.object({
|
|
3846
|
+
type: z.literal("decision-queue"),
|
|
3847
|
+
id: z.string().optional(),
|
|
3848
|
+
title: z.string().optional(),
|
|
3849
|
+
description: z.string().optional(),
|
|
3850
|
+
submit_label: z.string().optional(),
|
|
3851
|
+
items: z.array(decisionQueueItemSchema).min(2).max(12),
|
|
3852
|
+
resolved: z.object({
|
|
3853
|
+
decisions: z.array(
|
|
3854
|
+
z.object({
|
|
3855
|
+
id: z.string().optional(),
|
|
3856
|
+
title: z.string(),
|
|
3857
|
+
option: z.string(),
|
|
3858
|
+
value: z.number().optional()
|
|
3859
|
+
})
|
|
3860
|
+
)
|
|
3861
|
+
}).optional()
|
|
3862
|
+
});
|
|
3863
|
+
var OPTION_ITEM_JSON = {
|
|
3864
|
+
type: "object",
|
|
3865
|
+
properties: {
|
|
3866
|
+
id: { type: "string" },
|
|
3867
|
+
label: { type: "string" },
|
|
3868
|
+
recommended: { type: "boolean" },
|
|
3869
|
+
value: {
|
|
3870
|
+
type: "number",
|
|
3871
|
+
description: "Suggested numeric figure for this option (starting point of the adjuster)"
|
|
3872
|
+
},
|
|
3873
|
+
adjust: {
|
|
3874
|
+
type: "object",
|
|
3875
|
+
description: "Allow the user to tune `value` within this inclusive range before deciding",
|
|
3876
|
+
properties: {
|
|
3877
|
+
min: { type: "number" },
|
|
3878
|
+
max: { type: "number" },
|
|
3879
|
+
step: { type: "number" },
|
|
3880
|
+
unit: { type: "string", description: "Short unit suffix, e.g. 'units', '%', 'hrs'" }
|
|
3881
|
+
},
|
|
3882
|
+
required: ["min", "max"]
|
|
3883
|
+
}
|
|
3884
|
+
},
|
|
3885
|
+
required: ["label"]
|
|
3886
|
+
};
|
|
3887
|
+
var decisionQueueTool = {
|
|
3888
|
+
name: "render_decision_queue",
|
|
3889
|
+
description: "Render a SEQUENTIAL QUEUE of 2-12 related human-in-the-loop judgments, decided one at a time at full decision-card richness (amount at stake, data-quality flags, adjustable figures, source links) and submitted TOGETHER as one reply. Use whenever MORE THAN ONE decision is pending in the same turn \u2014 never emit multiple loose decision-cards. Give deferrable items an explicit 'leave open'-style option so the user can always complete the queue. For a single judgment use decision-card; for typed field input (names, dates, uploads) use render_builder.",
|
|
3890
|
+
input_schema: {
|
|
3891
|
+
type: "object",
|
|
3892
|
+
properties: {
|
|
3893
|
+
type: { type: "string", enum: ["decision-queue"] },
|
|
3894
|
+
id: { type: "string", description: "Stable id for update-in-place rendering" },
|
|
3895
|
+
title: {
|
|
3896
|
+
type: "string",
|
|
3897
|
+
description: "Batch headline shown in the header, e.g. 'Reconciliation exceptions'"
|
|
3898
|
+
},
|
|
3899
|
+
description: { type: "string", description: "One-line context above the queue" },
|
|
3900
|
+
submit_label: { type: "string", description: "CTA label; defaults to 'Submit N decisions'" },
|
|
3901
|
+
items: {
|
|
3902
|
+
type: "array",
|
|
3903
|
+
minItems: 2,
|
|
3904
|
+
maxItems: 12,
|
|
3905
|
+
description: "The pending judgments, in the order the user should take them. Each is a full decision-card body (no `type`).",
|
|
3906
|
+
items: {
|
|
3907
|
+
type: "object",
|
|
3908
|
+
properties: {
|
|
3909
|
+
id: { type: "string" },
|
|
3910
|
+
decision_type: {
|
|
3911
|
+
type: "string",
|
|
3912
|
+
description: "Short category eyebrow, e.g. 'Duplicate', 'Capitalization'"
|
|
3913
|
+
},
|
|
3914
|
+
title: { type: "string" },
|
|
3915
|
+
question: { type: "string" },
|
|
3916
|
+
amount: { type: "number" },
|
|
3917
|
+
currency: { type: "string" },
|
|
3918
|
+
amount_label: { type: "string" },
|
|
3919
|
+
severity: { type: "string", enum: ["low", "medium", "high"] },
|
|
3920
|
+
flags: {
|
|
3921
|
+
type: "array",
|
|
3922
|
+
maxItems: 6,
|
|
3923
|
+
items: {
|
|
3924
|
+
type: "object",
|
|
3925
|
+
properties: {
|
|
3926
|
+
field: { type: "string" },
|
|
3927
|
+
issue: { type: "string" },
|
|
3928
|
+
severity: { type: "string", enum: ["low", "medium", "high"] }
|
|
3929
|
+
},
|
|
3930
|
+
required: ["issue"]
|
|
3931
|
+
}
|
|
3932
|
+
},
|
|
3933
|
+
options: {
|
|
3934
|
+
type: "array",
|
|
3935
|
+
minItems: 1,
|
|
3936
|
+
maxItems: 5,
|
|
3937
|
+
items: OPTION_ITEM_JSON
|
|
3938
|
+
},
|
|
3939
|
+
source: {
|
|
3940
|
+
type: "object",
|
|
3941
|
+
properties: { label: { type: "string" }, url: { type: "string" } }
|
|
3942
|
+
}
|
|
3943
|
+
},
|
|
3944
|
+
required: ["title", "question", "options"]
|
|
3945
|
+
}
|
|
3946
|
+
},
|
|
3947
|
+
resolved: {
|
|
3948
|
+
type: "object",
|
|
3949
|
+
description: "Pre-resolved state for transcript replay",
|
|
3950
|
+
properties: {
|
|
3951
|
+
decisions: {
|
|
3952
|
+
type: "array",
|
|
3953
|
+
items: {
|
|
3954
|
+
type: "object",
|
|
3955
|
+
properties: {
|
|
3956
|
+
id: { type: "string" },
|
|
3957
|
+
title: { type: "string" },
|
|
3958
|
+
option: { type: "string" },
|
|
3959
|
+
value: { type: "number" }
|
|
3960
|
+
},
|
|
3961
|
+
required: ["title", "option"]
|
|
3962
|
+
}
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
required: ["decisions"]
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3968
|
+
required: ["type", "items"]
|
|
3969
|
+
}
|
|
3970
|
+
};
|
|
3786
3971
|
var tabbyAuthSchema = z.object({
|
|
3787
3972
|
type: z.literal("tabby-auth"),
|
|
3788
3973
|
app: z.string(),
|
|
@@ -3934,6 +4119,7 @@ var schemaRegistry = {
|
|
|
3934
4119
|
"workflow-stepper": { schema: workflowStepperSchema, tool: workflowStepperTool },
|
|
3935
4120
|
"document-field-extraction": { schema: documentFieldExtractionSchema, tool: documentFieldExtractionTool },
|
|
3936
4121
|
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool },
|
|
4122
|
+
"decision-queue": { schema: decisionQueueSchema, tool: decisionQueueTool },
|
|
3937
4123
|
"tabby-auth": { schema: tabbyAuthSchema, tool: tabbyAuthTool }
|
|
3938
4124
|
};
|
|
3939
4125
|
|