@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
|
@@ -26,6 +26,13 @@ export declare const decisionCardSchema: z.ZodObject<{
|
|
|
26
26
|
id: z.ZodOptional<z.ZodString>;
|
|
27
27
|
label: z.ZodString;
|
|
28
28
|
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
adjust: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
min: z.ZodNumber;
|
|
32
|
+
max: z.ZodNumber;
|
|
33
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
29
36
|
}, z.core.$strip>>;
|
|
30
37
|
source: z.ZodOptional<z.ZodObject<{
|
|
31
38
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -33,6 +40,7 @@ export declare const decisionCardSchema: z.ZodObject<{
|
|
|
33
40
|
}, z.core.$strip>>;
|
|
34
41
|
resolved: z.ZodOptional<z.ZodObject<{
|
|
35
42
|
option: z.ZodString;
|
|
43
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
36
44
|
}, z.core.$strip>>;
|
|
37
45
|
}, z.core.$strip>;
|
|
38
46
|
export declare const decisionCardTool: {
|
|
@@ -116,6 +124,31 @@ export declare const decisionCardTool: {
|
|
|
116
124
|
recommended: {
|
|
117
125
|
type: string;
|
|
118
126
|
};
|
|
127
|
+
value: {
|
|
128
|
+
type: string;
|
|
129
|
+
description: string;
|
|
130
|
+
};
|
|
131
|
+
adjust: {
|
|
132
|
+
type: string;
|
|
133
|
+
description: string;
|
|
134
|
+
properties: {
|
|
135
|
+
min: {
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
max: {
|
|
139
|
+
type: string;
|
|
140
|
+
};
|
|
141
|
+
step: {
|
|
142
|
+
type: string;
|
|
143
|
+
description: string;
|
|
144
|
+
};
|
|
145
|
+
unit: {
|
|
146
|
+
type: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
required: string[];
|
|
151
|
+
};
|
|
119
152
|
};
|
|
120
153
|
required: string[];
|
|
121
154
|
};
|
|
@@ -139,6 +172,10 @@ export declare const decisionCardTool: {
|
|
|
139
172
|
option: {
|
|
140
173
|
type: string;
|
|
141
174
|
};
|
|
175
|
+
value: {
|
|
176
|
+
type: string;
|
|
177
|
+
description: string;
|
|
178
|
+
};
|
|
142
179
|
};
|
|
143
180
|
required: string[];
|
|
144
181
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision-card.d.ts","sourceRoot":"","sources":["../../src/schemas/decision-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"decision-card.d.ts","sourceRoot":"","sources":["../../src/schemas/decision-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmD7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwF5B,CAAC"}
|
package/dist/schemas/index.cjs
CHANGED
|
@@ -3395,7 +3395,32 @@ var workflowStepperSchema = zod.z.object({
|
|
|
3395
3395
|
n: zod.z.number().int().positive().optional(),
|
|
3396
3396
|
title: zod.z.string(),
|
|
3397
3397
|
sub: zod.z.string().optional(),
|
|
3398
|
-
status: zod.z.enum([
|
|
3398
|
+
status: zod.z.enum([
|
|
3399
|
+
"done",
|
|
3400
|
+
"active",
|
|
3401
|
+
"running",
|
|
3402
|
+
"review",
|
|
3403
|
+
"pending",
|
|
3404
|
+
"blocked",
|
|
3405
|
+
"failed"
|
|
3406
|
+
]),
|
|
3407
|
+
// Optional quality-gate verdict for a step run by an executor (e.g. a
|
|
3408
|
+
// pipeline). Surfaces a subtle trust badge; flags hint at issues a human
|
|
3409
|
+
// should review (the full list lives in the escalation dock).
|
|
3410
|
+
eval: zod.z.object({
|
|
3411
|
+
score: zod.z.number().min(0).max(1).nullable().optional(),
|
|
3412
|
+
verdict: zod.z.enum(["good", "bad"]).optional(),
|
|
3413
|
+
reasoning: zod.z.string().optional(),
|
|
3414
|
+
judge_ok: zod.z.boolean().optional(),
|
|
3415
|
+
data_quality_flags: zod.z.array(
|
|
3416
|
+
zod.z.object({
|
|
3417
|
+
field: zod.z.string().optional(),
|
|
3418
|
+
issue: zod.z.string().optional(),
|
|
3419
|
+
severity: zod.z.enum(["low", "medium", "high"]).optional(),
|
|
3420
|
+
details: zod.z.string().optional()
|
|
3421
|
+
})
|
|
3422
|
+
).optional()
|
|
3423
|
+
}).optional(),
|
|
3399
3424
|
assignees: zod.z.array(
|
|
3400
3425
|
zod.z.object({
|
|
3401
3426
|
name: zod.z.string(),
|
|
@@ -3431,7 +3456,32 @@ var workflowStepperTool = {
|
|
|
3431
3456
|
n: { type: "number", description: "Step number; defaults to index + 1" },
|
|
3432
3457
|
title: { type: "string" },
|
|
3433
3458
|
sub: { type: "string", description: "Short status caption, e.g. '7 accounts \xB7 2 exceptions'" },
|
|
3434
|
-
status: {
|
|
3459
|
+
status: {
|
|
3460
|
+
type: "string",
|
|
3461
|
+
enum: ["done", "active", "running", "review", "pending", "blocked", "failed"]
|
|
3462
|
+
},
|
|
3463
|
+
eval: {
|
|
3464
|
+
type: "object",
|
|
3465
|
+
description: "Optional quality-gate verdict for an executor-run step.",
|
|
3466
|
+
properties: {
|
|
3467
|
+
score: { type: "number" },
|
|
3468
|
+
verdict: { type: "string", enum: ["good", "bad"] },
|
|
3469
|
+
reasoning: { type: "string" },
|
|
3470
|
+
judge_ok: { type: "boolean" },
|
|
3471
|
+
data_quality_flags: {
|
|
3472
|
+
type: "array",
|
|
3473
|
+
items: {
|
|
3474
|
+
type: "object",
|
|
3475
|
+
properties: {
|
|
3476
|
+
field: { type: "string" },
|
|
3477
|
+
issue: { type: "string" },
|
|
3478
|
+
severity: { type: "string", enum: ["low", "medium", "high"] },
|
|
3479
|
+
details: { type: "string" }
|
|
3480
|
+
}
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
},
|
|
3435
3485
|
assignees: {
|
|
3436
3486
|
type: "array",
|
|
3437
3487
|
maxItems: 6,
|
|
@@ -3653,7 +3703,14 @@ var decisionCardSchema = zod.z.object({
|
|
|
3653
3703
|
zod.z.object({
|
|
3654
3704
|
id: zod.z.string().optional(),
|
|
3655
3705
|
label: zod.z.string(),
|
|
3656
|
-
recommended: zod.z.boolean().optional()
|
|
3706
|
+
recommended: zod.z.boolean().optional(),
|
|
3707
|
+
value: zod.z.number().optional(),
|
|
3708
|
+
adjust: zod.z.object({
|
|
3709
|
+
min: zod.z.number(),
|
|
3710
|
+
max: zod.z.number(),
|
|
3711
|
+
step: zod.z.number().optional(),
|
|
3712
|
+
unit: zod.z.string().optional()
|
|
3713
|
+
}).optional()
|
|
3657
3714
|
})
|
|
3658
3715
|
).min(1).max(5),
|
|
3659
3716
|
source: zod.z.object({
|
|
@@ -3661,7 +3718,8 @@ var decisionCardSchema = zod.z.object({
|
|
|
3661
3718
|
url: zod.z.string().optional()
|
|
3662
3719
|
}).optional(),
|
|
3663
3720
|
resolved: zod.z.object({
|
|
3664
|
-
option: zod.z.string()
|
|
3721
|
+
option: zod.z.string(),
|
|
3722
|
+
value: zod.z.number().optional()
|
|
3665
3723
|
}).optional()
|
|
3666
3724
|
});
|
|
3667
3725
|
var decisionCardTool = {
|
|
@@ -3704,13 +3762,28 @@ var decisionCardTool = {
|
|
|
3704
3762
|
type: "array",
|
|
3705
3763
|
minItems: 1,
|
|
3706
3764
|
maxItems: 5,
|
|
3707
|
-
description: "Mutually-exclusive resolution choices; mark one `recommended` to make it primary",
|
|
3765
|
+
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.",
|
|
3708
3766
|
items: {
|
|
3709
3767
|
type: "object",
|
|
3710
3768
|
properties: {
|
|
3711
3769
|
id: { type: "string" },
|
|
3712
3770
|
label: { type: "string" },
|
|
3713
|
-
recommended: { type: "boolean" }
|
|
3771
|
+
recommended: { type: "boolean" },
|
|
3772
|
+
value: {
|
|
3773
|
+
type: "number",
|
|
3774
|
+
description: "Suggested numeric figure for this option (the starting point of the adjuster)"
|
|
3775
|
+
},
|
|
3776
|
+
adjust: {
|
|
3777
|
+
type: "object",
|
|
3778
|
+
description: "Allow the user to tune `value` within this inclusive range before resolving",
|
|
3779
|
+
properties: {
|
|
3780
|
+
min: { type: "number" },
|
|
3781
|
+
max: { type: "number" },
|
|
3782
|
+
step: { type: "number", description: "Increment granularity; defaults to a sensible step for the range" },
|
|
3783
|
+
unit: { type: "string", description: "Short unit suffix shown after the number, e.g. 'units', '%', 'hrs'" }
|
|
3784
|
+
},
|
|
3785
|
+
required: ["min", "max"]
|
|
3786
|
+
}
|
|
3714
3787
|
},
|
|
3715
3788
|
required: ["label"]
|
|
3716
3789
|
}
|
|
@@ -3727,7 +3800,8 @@ var decisionCardTool = {
|
|
|
3727
3800
|
type: "object",
|
|
3728
3801
|
description: "Pre-resolved state for transcript replay",
|
|
3729
3802
|
properties: {
|
|
3730
|
-
option: { type: "string" }
|
|
3803
|
+
option: { type: "string" },
|
|
3804
|
+
value: { type: "number", description: "Adjusted figure the user confirmed, when the option was adjustable" }
|
|
3731
3805
|
},
|
|
3732
3806
|
required: ["option"]
|
|
3733
3807
|
}
|
|
@@ -3735,6 +3809,36 @@ var decisionCardTool = {
|
|
|
3735
3809
|
required: ["type", "title", "question", "options"]
|
|
3736
3810
|
}
|
|
3737
3811
|
};
|
|
3812
|
+
var tabbyAuthSchema = zod.z.object({
|
|
3813
|
+
type: zod.z.literal("tabby-auth"),
|
|
3814
|
+
app: zod.z.string(),
|
|
3815
|
+
url: zod.z.string(),
|
|
3816
|
+
workspace: zod.z.string().optional(),
|
|
3817
|
+
state: zod.z.enum(["pending", "connected"]).optional(),
|
|
3818
|
+
ctaLabel: zod.z.string().optional(),
|
|
3819
|
+
steps: zod.z.array(zod.z.string()).optional(),
|
|
3820
|
+
description: zod.z.string().optional(),
|
|
3821
|
+
iconUrl: zod.z.string().optional()
|
|
3822
|
+
});
|
|
3823
|
+
var tabbyAuthTool = {
|
|
3824
|
+
name: "render_tabby_auth",
|
|
3825
|
+
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.",
|
|
3826
|
+
input_schema: {
|
|
3827
|
+
type: "object",
|
|
3828
|
+
properties: {
|
|
3829
|
+
type: { type: "string", enum: ["tabby-auth"] },
|
|
3830
|
+
app: { type: "string" },
|
|
3831
|
+
url: { type: "string" },
|
|
3832
|
+
workspace: { type: "string" },
|
|
3833
|
+
state: { type: "string", enum: ["pending", "connected"] },
|
|
3834
|
+
ctaLabel: { type: "string" },
|
|
3835
|
+
steps: { type: "array", items: { type: "string" } },
|
|
3836
|
+
description: { type: "string" },
|
|
3837
|
+
iconUrl: { type: "string" }
|
|
3838
|
+
},
|
|
3839
|
+
required: ["type", "app", "url"]
|
|
3840
|
+
}
|
|
3841
|
+
};
|
|
3738
3842
|
|
|
3739
3843
|
// src/schemas/buildRenderUITool.ts
|
|
3740
3844
|
function buildRenderUITool(selectedSchemas) {
|
|
@@ -3855,7 +3959,8 @@ var schemaRegistry = {
|
|
|
3855
3959
|
"pipeline-preview": { schema: pipelinePreviewSchema, tool: pipelinePreviewTool },
|
|
3856
3960
|
"workflow-stepper": { schema: workflowStepperSchema, tool: workflowStepperTool },
|
|
3857
3961
|
"document-field-extraction": { schema: documentFieldExtractionSchema, tool: documentFieldExtractionTool },
|
|
3858
|
-
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool }
|
|
3962
|
+
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool },
|
|
3963
|
+
"tabby-auth": { schema: tabbyAuthSchema, tool: tabbyAuthTool }
|
|
3859
3964
|
};
|
|
3860
3965
|
|
|
3861
3966
|
exports.buildRenderUITool = buildRenderUITool;
|