@adoptai/genui-components 0.1.58 → 0.1.60
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 +289 -13
- package/dist/composites/decision-card/resolver.cjs.map +1 -1
- package/dist/composites/decision-card/resolver.d.ts +2 -1
- package/dist/composites/decision-card/resolver.d.ts.map +1 -1
- package/dist/composites/decision-card/resolver.js +289 -13
- package/dist/composites/decision-card/resolver.js.map +1 -1
- package/dist/composites/document-field-extraction/resolver.cjs +1920 -0
- package/dist/composites/document-field-extraction/resolver.cjs.map +1 -0
- package/dist/composites/document-field-extraction/resolver.js +1913 -0
- package/dist/composites/document-field-extraction/resolver.js.map +1 -0
- package/dist/composites/tabby-auth/resolver.cjs +597 -0
- package/dist/composites/tabby-auth/resolver.cjs.map +1 -0
- package/dist/composites/tabby-auth/resolver.d.ts +3 -0
- package/dist/composites/tabby-auth/resolver.d.ts.map +1 -0
- package/dist/composites/tabby-auth/resolver.js +595 -0
- package/dist/composites/tabby-auth/resolver.js.map +1 -0
- package/dist/composites/workflow-stepper/resolver.cjs +86 -18
- package/dist/composites/workflow-stepper/resolver.cjs.map +1 -1
- package/dist/composites/workflow-stepper/resolver.d.ts.map +1 -1
- package/dist/composites/workflow-stepper/resolver.js +86 -18
- package/dist/composites/workflow-stepper/resolver.js.map +1 -1
- package/dist/index.cjs +901 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +901 -63
- package/dist/index.js.map +1 -1
- package/dist/renderer.cjs +810 -45
- package/dist/renderer.cjs.map +1 -1
- package/dist/renderer.js +810 -45
- package/dist/renderer.js.map +1 -1
- package/dist/resolver.cjs +810 -45
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +810 -45
- 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/index.cjs +113 -8
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.ts +155 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +113 -8
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/tabby-auth.d.ts +58 -0
- package/dist/schemas/tabby-auth.d.ts.map +1 -0
- package/dist/schemas/workflow-stepper.d.ts +60 -0
- package/dist/schemas/workflow-stepper.d.ts.map +1 -1
- package/dist/tool-definitions.json +135 -4
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -5041,9 +5041,29 @@ export declare const schemaRegistry: {
|
|
|
5041
5041
|
active: "active";
|
|
5042
5042
|
done: "done";
|
|
5043
5043
|
blocked: "blocked";
|
|
5044
|
+
running: "running";
|
|
5044
5045
|
failed: "failed";
|
|
5045
5046
|
review: "review";
|
|
5046
5047
|
}>;
|
|
5048
|
+
eval: z.ZodOptional<z.ZodObject<{
|
|
5049
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5050
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
5051
|
+
good: "good";
|
|
5052
|
+
bad: "bad";
|
|
5053
|
+
}>>;
|
|
5054
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5055
|
+
judge_ok: z.ZodOptional<z.ZodBoolean>;
|
|
5056
|
+
data_quality_flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5057
|
+
field: z.ZodOptional<z.ZodString>;
|
|
5058
|
+
issue: z.ZodOptional<z.ZodString>;
|
|
5059
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
5060
|
+
high: "high";
|
|
5061
|
+
medium: "medium";
|
|
5062
|
+
low: "low";
|
|
5063
|
+
}>>;
|
|
5064
|
+
details: z.ZodOptional<z.ZodString>;
|
|
5065
|
+
}, z.core.$strip>>>;
|
|
5066
|
+
}, z.core.$strip>>;
|
|
5047
5067
|
assignees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5048
5068
|
name: z.ZodString;
|
|
5049
5069
|
kind: z.ZodEnum<{
|
|
@@ -5111,6 +5131,46 @@ export declare const schemaRegistry: {
|
|
|
5111
5131
|
type: string;
|
|
5112
5132
|
enum: string[];
|
|
5113
5133
|
};
|
|
5134
|
+
eval: {
|
|
5135
|
+
type: string;
|
|
5136
|
+
description: string;
|
|
5137
|
+
properties: {
|
|
5138
|
+
score: {
|
|
5139
|
+
type: string;
|
|
5140
|
+
};
|
|
5141
|
+
verdict: {
|
|
5142
|
+
type: string;
|
|
5143
|
+
enum: string[];
|
|
5144
|
+
};
|
|
5145
|
+
reasoning: {
|
|
5146
|
+
type: string;
|
|
5147
|
+
};
|
|
5148
|
+
judge_ok: {
|
|
5149
|
+
type: string;
|
|
5150
|
+
};
|
|
5151
|
+
data_quality_flags: {
|
|
5152
|
+
type: string;
|
|
5153
|
+
items: {
|
|
5154
|
+
type: string;
|
|
5155
|
+
properties: {
|
|
5156
|
+
field: {
|
|
5157
|
+
type: string;
|
|
5158
|
+
};
|
|
5159
|
+
issue: {
|
|
5160
|
+
type: string;
|
|
5161
|
+
};
|
|
5162
|
+
severity: {
|
|
5163
|
+
type: string;
|
|
5164
|
+
enum: string[];
|
|
5165
|
+
};
|
|
5166
|
+
details: {
|
|
5167
|
+
type: string;
|
|
5168
|
+
};
|
|
5169
|
+
};
|
|
5170
|
+
};
|
|
5171
|
+
};
|
|
5172
|
+
};
|
|
5173
|
+
};
|
|
5114
5174
|
assignees: {
|
|
5115
5175
|
type: string;
|
|
5116
5176
|
maxItems: number;
|
|
@@ -5432,6 +5492,13 @@ export declare const schemaRegistry: {
|
|
|
5432
5492
|
id: z.ZodOptional<z.ZodString>;
|
|
5433
5493
|
label: z.ZodString;
|
|
5434
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>>;
|
|
5435
5502
|
}, z.core.$strip>>;
|
|
5436
5503
|
source: z.ZodOptional<z.ZodObject<{
|
|
5437
5504
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -5439,6 +5506,7 @@ export declare const schemaRegistry: {
|
|
|
5439
5506
|
}, z.core.$strip>>;
|
|
5440
5507
|
resolved: z.ZodOptional<z.ZodObject<{
|
|
5441
5508
|
option: z.ZodString;
|
|
5509
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
5442
5510
|
}, z.core.$strip>>;
|
|
5443
5511
|
}, z.core.$strip>;
|
|
5444
5512
|
tool: {
|
|
@@ -5522,6 +5590,31 @@ export declare const schemaRegistry: {
|
|
|
5522
5590
|
recommended: {
|
|
5523
5591
|
type: string;
|
|
5524
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
|
+
};
|
|
5525
5618
|
};
|
|
5526
5619
|
required: string[];
|
|
5527
5620
|
};
|
|
@@ -5545,6 +5638,10 @@ export declare const schemaRegistry: {
|
|
|
5545
5638
|
option: {
|
|
5546
5639
|
type: string;
|
|
5547
5640
|
};
|
|
5641
|
+
value: {
|
|
5642
|
+
type: string;
|
|
5643
|
+
description: string;
|
|
5644
|
+
};
|
|
5548
5645
|
};
|
|
5549
5646
|
required: string[];
|
|
5550
5647
|
};
|
|
@@ -5553,6 +5650,64 @@ export declare const schemaRegistry: {
|
|
|
5553
5650
|
};
|
|
5554
5651
|
};
|
|
5555
5652
|
};
|
|
5653
|
+
"tabby-auth": {
|
|
5654
|
+
schema: z.ZodObject<{
|
|
5655
|
+
type: z.ZodLiteral<"tabby-auth">;
|
|
5656
|
+
app: z.ZodString;
|
|
5657
|
+
url: z.ZodString;
|
|
5658
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
5659
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
5660
|
+
pending: "pending";
|
|
5661
|
+
connected: "connected";
|
|
5662
|
+
}>>;
|
|
5663
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
5664
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5665
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5666
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
5667
|
+
}, z.core.$strip>;
|
|
5668
|
+
tool: {
|
|
5669
|
+
name: string;
|
|
5670
|
+
description: string;
|
|
5671
|
+
input_schema: {
|
|
5672
|
+
type: "object";
|
|
5673
|
+
properties: {
|
|
5674
|
+
type: {
|
|
5675
|
+
type: string;
|
|
5676
|
+
enum: string[];
|
|
5677
|
+
};
|
|
5678
|
+
app: {
|
|
5679
|
+
type: string;
|
|
5680
|
+
};
|
|
5681
|
+
url: {
|
|
5682
|
+
type: string;
|
|
5683
|
+
};
|
|
5684
|
+
workspace: {
|
|
5685
|
+
type: string;
|
|
5686
|
+
};
|
|
5687
|
+
state: {
|
|
5688
|
+
type: string;
|
|
5689
|
+
enum: string[];
|
|
5690
|
+
};
|
|
5691
|
+
ctaLabel: {
|
|
5692
|
+
type: string;
|
|
5693
|
+
};
|
|
5694
|
+
steps: {
|
|
5695
|
+
type: string;
|
|
5696
|
+
items: {
|
|
5697
|
+
type: string;
|
|
5698
|
+
};
|
|
5699
|
+
};
|
|
5700
|
+
description: {
|
|
5701
|
+
type: string;
|
|
5702
|
+
};
|
|
5703
|
+
iconUrl: {
|
|
5704
|
+
type: string;
|
|
5705
|
+
};
|
|
5706
|
+
};
|
|
5707
|
+
required: string[];
|
|
5708
|
+
};
|
|
5709
|
+
};
|
|
5710
|
+
};
|
|
5556
5711
|
};
|
|
5557
5712
|
export type SchemaPayload<T extends keyof typeof schemaRegistry> = z.infer<(typeof schemaRegistry)[T]["schema"]>;
|
|
5558
5713
|
export { buildRenderUITool } from "./buildRenderUITool";
|
|
@@ -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;AA6DxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoH4C,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
|
@@ -3393,7 +3393,32 @@ var workflowStepperSchema = z.object({
|
|
|
3393
3393
|
n: z.number().int().positive().optional(),
|
|
3394
3394
|
title: z.string(),
|
|
3395
3395
|
sub: z.string().optional(),
|
|
3396
|
-
status: z.enum([
|
|
3396
|
+
status: z.enum([
|
|
3397
|
+
"done",
|
|
3398
|
+
"active",
|
|
3399
|
+
"running",
|
|
3400
|
+
"review",
|
|
3401
|
+
"pending",
|
|
3402
|
+
"blocked",
|
|
3403
|
+
"failed"
|
|
3404
|
+
]),
|
|
3405
|
+
// Optional quality-gate verdict for a step run by an executor (e.g. a
|
|
3406
|
+
// pipeline). Surfaces a subtle trust badge; flags hint at issues a human
|
|
3407
|
+
// should review (the full list lives in the escalation dock).
|
|
3408
|
+
eval: z.object({
|
|
3409
|
+
score: z.number().min(0).max(1).nullable().optional(),
|
|
3410
|
+
verdict: z.enum(["good", "bad"]).optional(),
|
|
3411
|
+
reasoning: z.string().optional(),
|
|
3412
|
+
judge_ok: z.boolean().optional(),
|
|
3413
|
+
data_quality_flags: z.array(
|
|
3414
|
+
z.object({
|
|
3415
|
+
field: z.string().optional(),
|
|
3416
|
+
issue: z.string().optional(),
|
|
3417
|
+
severity: z.enum(["low", "medium", "high"]).optional(),
|
|
3418
|
+
details: z.string().optional()
|
|
3419
|
+
})
|
|
3420
|
+
).optional()
|
|
3421
|
+
}).optional(),
|
|
3397
3422
|
assignees: z.array(
|
|
3398
3423
|
z.object({
|
|
3399
3424
|
name: z.string(),
|
|
@@ -3429,7 +3454,32 @@ var workflowStepperTool = {
|
|
|
3429
3454
|
n: { type: "number", description: "Step number; defaults to index + 1" },
|
|
3430
3455
|
title: { type: "string" },
|
|
3431
3456
|
sub: { type: "string", description: "Short status caption, e.g. '7 accounts \xB7 2 exceptions'" },
|
|
3432
|
-
status: {
|
|
3457
|
+
status: {
|
|
3458
|
+
type: "string",
|
|
3459
|
+
enum: ["done", "active", "running", "review", "pending", "blocked", "failed"]
|
|
3460
|
+
},
|
|
3461
|
+
eval: {
|
|
3462
|
+
type: "object",
|
|
3463
|
+
description: "Optional quality-gate verdict for an executor-run step.",
|
|
3464
|
+
properties: {
|
|
3465
|
+
score: { type: "number" },
|
|
3466
|
+
verdict: { type: "string", enum: ["good", "bad"] },
|
|
3467
|
+
reasoning: { type: "string" },
|
|
3468
|
+
judge_ok: { type: "boolean" },
|
|
3469
|
+
data_quality_flags: {
|
|
3470
|
+
type: "array",
|
|
3471
|
+
items: {
|
|
3472
|
+
type: "object",
|
|
3473
|
+
properties: {
|
|
3474
|
+
field: { type: "string" },
|
|
3475
|
+
issue: { type: "string" },
|
|
3476
|
+
severity: { type: "string", enum: ["low", "medium", "high"] },
|
|
3477
|
+
details: { type: "string" }
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3433
3483
|
assignees: {
|
|
3434
3484
|
type: "array",
|
|
3435
3485
|
maxItems: 6,
|
|
@@ -3651,7 +3701,14 @@ var decisionCardSchema = z.object({
|
|
|
3651
3701
|
z.object({
|
|
3652
3702
|
id: z.string().optional(),
|
|
3653
3703
|
label: z.string(),
|
|
3654
|
-
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()
|
|
3655
3712
|
})
|
|
3656
3713
|
).min(1).max(5),
|
|
3657
3714
|
source: z.object({
|
|
@@ -3659,7 +3716,8 @@ var decisionCardSchema = z.object({
|
|
|
3659
3716
|
url: z.string().optional()
|
|
3660
3717
|
}).optional(),
|
|
3661
3718
|
resolved: z.object({
|
|
3662
|
-
option: z.string()
|
|
3719
|
+
option: z.string(),
|
|
3720
|
+
value: z.number().optional()
|
|
3663
3721
|
}).optional()
|
|
3664
3722
|
});
|
|
3665
3723
|
var decisionCardTool = {
|
|
@@ -3702,13 +3760,28 @@ var decisionCardTool = {
|
|
|
3702
3760
|
type: "array",
|
|
3703
3761
|
minItems: 1,
|
|
3704
3762
|
maxItems: 5,
|
|
3705
|
-
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.",
|
|
3706
3764
|
items: {
|
|
3707
3765
|
type: "object",
|
|
3708
3766
|
properties: {
|
|
3709
3767
|
id: { type: "string" },
|
|
3710
3768
|
label: { type: "string" },
|
|
3711
|
-
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
|
+
}
|
|
3712
3785
|
},
|
|
3713
3786
|
required: ["label"]
|
|
3714
3787
|
}
|
|
@@ -3725,7 +3798,8 @@ var decisionCardTool = {
|
|
|
3725
3798
|
type: "object",
|
|
3726
3799
|
description: "Pre-resolved state for transcript replay",
|
|
3727
3800
|
properties: {
|
|
3728
|
-
option: { type: "string" }
|
|
3801
|
+
option: { type: "string" },
|
|
3802
|
+
value: { type: "number", description: "Adjusted figure the user confirmed, when the option was adjustable" }
|
|
3729
3803
|
},
|
|
3730
3804
|
required: ["option"]
|
|
3731
3805
|
}
|
|
@@ -3733,6 +3807,36 @@ var decisionCardTool = {
|
|
|
3733
3807
|
required: ["type", "title", "question", "options"]
|
|
3734
3808
|
}
|
|
3735
3809
|
};
|
|
3810
|
+
var tabbyAuthSchema = z.object({
|
|
3811
|
+
type: z.literal("tabby-auth"),
|
|
3812
|
+
app: z.string(),
|
|
3813
|
+
url: z.string(),
|
|
3814
|
+
workspace: z.string().optional(),
|
|
3815
|
+
state: z.enum(["pending", "connected"]).optional(),
|
|
3816
|
+
ctaLabel: z.string().optional(),
|
|
3817
|
+
steps: z.array(z.string()).optional(),
|
|
3818
|
+
description: z.string().optional(),
|
|
3819
|
+
iconUrl: z.string().optional()
|
|
3820
|
+
});
|
|
3821
|
+
var tabbyAuthTool = {
|
|
3822
|
+
name: "render_tabby_auth",
|
|
3823
|
+
description: "Render a dedicated, trustworthy sign-in card when a harness skill needs the member to authenticate with a third-party app (e.g. Sage Intacct, Airbnb, an ERP) before a `call_web_api` request can proceed. Use this for the `login_required` path instead of a raw markdown link or a connect-integration card. `app` is the human display name (drives the title context, subtitle, and CTA). `url` is the login/short-link the prominent CTA opens in a new tab. `workspace` adds a subtitle suffix ('{app} \xB7 {workspace} workspace'). `state='pending'` (default) is the first-time connect; `state='connected'` is the verify/re-auth case (session already live) with a green badge and an Open deep-link. `steps` overrides the default numbered instructions; `description` is a one-line intro. The card title ('Authentication required') and the 'Credentials not stored by Adopt' trust footer are hardcoded brand constants \u2014 never supplied here.",
|
|
3824
|
+
input_schema: {
|
|
3825
|
+
type: "object",
|
|
3826
|
+
properties: {
|
|
3827
|
+
type: { type: "string", enum: ["tabby-auth"] },
|
|
3828
|
+
app: { type: "string" },
|
|
3829
|
+
url: { type: "string" },
|
|
3830
|
+
workspace: { type: "string" },
|
|
3831
|
+
state: { type: "string", enum: ["pending", "connected"] },
|
|
3832
|
+
ctaLabel: { type: "string" },
|
|
3833
|
+
steps: { type: "array", items: { type: "string" } },
|
|
3834
|
+
description: { type: "string" },
|
|
3835
|
+
iconUrl: { type: "string" }
|
|
3836
|
+
},
|
|
3837
|
+
required: ["type", "app", "url"]
|
|
3838
|
+
}
|
|
3839
|
+
};
|
|
3736
3840
|
|
|
3737
3841
|
// src/schemas/buildRenderUITool.ts
|
|
3738
3842
|
function buildRenderUITool(selectedSchemas) {
|
|
@@ -3853,7 +3957,8 @@ var schemaRegistry = {
|
|
|
3853
3957
|
"pipeline-preview": { schema: pipelinePreviewSchema, tool: pipelinePreviewTool },
|
|
3854
3958
|
"workflow-stepper": { schema: workflowStepperSchema, tool: workflowStepperTool },
|
|
3855
3959
|
"document-field-extraction": { schema: documentFieldExtractionSchema, tool: documentFieldExtractionTool },
|
|
3856
|
-
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool }
|
|
3960
|
+
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool },
|
|
3961
|
+
"tabby-auth": { schema: tabbyAuthSchema, tool: tabbyAuthTool }
|
|
3857
3962
|
};
|
|
3858
3963
|
|
|
3859
3964
|
export { buildRenderUITool, schemaRegistry, validatePayload };
|