@adoptai/genui-components 0.1.60 → 0.1.62
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/composites/decision-card/resolver.cjs +7 -4
- package/dist/composites/decision-card/resolver.cjs.map +1 -1
- package/dist/composites/decision-card/resolver.d.ts +7 -1
- package/dist/composites/decision-card/resolver.d.ts.map +1 -1
- package/dist/composites/decision-card/resolver.js +7 -5
- package/dist/composites/decision-card/resolver.js.map +1 -1
- package/dist/composites/decision-queue/resolver.d.ts +33 -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 +495 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +495 -10
- package/dist/index.js.map +1 -1
- package/dist/renderer.cjs +495 -10
- package/dist/renderer.cjs.map +1 -1
- package/dist/renderer.js +495 -10
- package/dist/renderer.js.map +1 -1
- package/dist/resolver.cjs +495 -10
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +495 -10
- package/dist/resolver.js.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 +162 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.ts +227 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +162 -0
- 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 +203 -3
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -5650,6 +5650,233 @@ export declare const schemaRegistry: {
|
|
|
5650
5650
|
};
|
|
5651
5651
|
};
|
|
5652
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
|
+
};
|
|
5872
|
+
};
|
|
5873
|
+
required: string[];
|
|
5874
|
+
};
|
|
5875
|
+
};
|
|
5876
|
+
required: string[];
|
|
5877
|
+
};
|
|
5878
|
+
};
|
|
5879
|
+
};
|
|
5653
5880
|
"tabby-auth": {
|
|
5654
5881
|
schema: z.ZodObject<{
|
|
5655
5882
|
type: z.ZodLiteral<"tabby-auth">;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAxDN,CAAC;;;;;;;;6BAAD,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
|
@@ -3807,6 +3807,167 @@ var decisionCardTool = {
|
|
|
3807
3807
|
required: ["type", "title", "question", "options"]
|
|
3808
3808
|
}
|
|
3809
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
|
+
};
|
|
3810
3971
|
var tabbyAuthSchema = z.object({
|
|
3811
3972
|
type: z.literal("tabby-auth"),
|
|
3812
3973
|
app: z.string(),
|
|
@@ -3958,6 +4119,7 @@ var schemaRegistry = {
|
|
|
3958
4119
|
"workflow-stepper": { schema: workflowStepperSchema, tool: workflowStepperTool },
|
|
3959
4120
|
"document-field-extraction": { schema: documentFieldExtractionSchema, tool: documentFieldExtractionTool },
|
|
3960
4121
|
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool },
|
|
4122
|
+
"decision-queue": { schema: decisionQueueSchema, tool: decisionQueueTool },
|
|
3961
4123
|
"tabby-auth": { schema: tabbyAuthSchema, tool: tabbyAuthTool }
|
|
3962
4124
|
};
|
|
3963
4125
|
|