@adoptai/genui-components 0.1.58 → 0.1.59
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/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 +492 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +492 -27
- package/dist/index.js.map +1 -1
- package/dist/renderer.cjs +492 -27
- package/dist/renderer.cjs.map +1 -1
- package/dist/renderer.js +492 -27
- package/dist/renderer.js.map +1 -1
- package/dist/resolver.cjs +492 -27
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +492 -27
- package/dist/resolver.js.map +1 -1
- package/dist/schemas/index.cjs +84 -3
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.ts +118 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +84 -3
- 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 +102 -3
- package/package.json +1 -1
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,
|
|
@@ -3735,6 +3785,36 @@ var decisionCardTool = {
|
|
|
3735
3785
|
required: ["type", "title", "question", "options"]
|
|
3736
3786
|
}
|
|
3737
3787
|
};
|
|
3788
|
+
var tabbyAuthSchema = zod.z.object({
|
|
3789
|
+
type: zod.z.literal("tabby-auth"),
|
|
3790
|
+
app: zod.z.string(),
|
|
3791
|
+
url: zod.z.string(),
|
|
3792
|
+
workspace: zod.z.string().optional(),
|
|
3793
|
+
state: zod.z.enum(["pending", "connected"]).optional(),
|
|
3794
|
+
ctaLabel: zod.z.string().optional(),
|
|
3795
|
+
steps: zod.z.array(zod.z.string()).optional(),
|
|
3796
|
+
description: zod.z.string().optional(),
|
|
3797
|
+
iconUrl: zod.z.string().optional()
|
|
3798
|
+
});
|
|
3799
|
+
var tabbyAuthTool = {
|
|
3800
|
+
name: "render_tabby_auth",
|
|
3801
|
+
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.",
|
|
3802
|
+
input_schema: {
|
|
3803
|
+
type: "object",
|
|
3804
|
+
properties: {
|
|
3805
|
+
type: { type: "string", enum: ["tabby-auth"] },
|
|
3806
|
+
app: { type: "string" },
|
|
3807
|
+
url: { type: "string" },
|
|
3808
|
+
workspace: { type: "string" },
|
|
3809
|
+
state: { type: "string", enum: ["pending", "connected"] },
|
|
3810
|
+
ctaLabel: { type: "string" },
|
|
3811
|
+
steps: { type: "array", items: { type: "string" } },
|
|
3812
|
+
description: { type: "string" },
|
|
3813
|
+
iconUrl: { type: "string" }
|
|
3814
|
+
},
|
|
3815
|
+
required: ["type", "app", "url"]
|
|
3816
|
+
}
|
|
3817
|
+
};
|
|
3738
3818
|
|
|
3739
3819
|
// src/schemas/buildRenderUITool.ts
|
|
3740
3820
|
function buildRenderUITool(selectedSchemas) {
|
|
@@ -3855,7 +3935,8 @@ var schemaRegistry = {
|
|
|
3855
3935
|
"pipeline-preview": { schema: pipelinePreviewSchema, tool: pipelinePreviewTool },
|
|
3856
3936
|
"workflow-stepper": { schema: workflowStepperSchema, tool: workflowStepperTool },
|
|
3857
3937
|
"document-field-extraction": { schema: documentFieldExtractionSchema, tool: documentFieldExtractionTool },
|
|
3858
|
-
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool }
|
|
3938
|
+
"decision-card": { schema: decisionCardSchema, tool: decisionCardTool },
|
|
3939
|
+
"tabby-auth": { schema: tabbyAuthSchema, tool: tabbyAuthTool }
|
|
3859
3940
|
};
|
|
3860
3941
|
|
|
3861
3942
|
exports.buildRenderUITool = buildRenderUITool;
|