@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.
Files changed (54) hide show
  1. package/dist/builders/BlockForm.d.ts +5 -1
  2. package/dist/builders/BlockForm.d.ts.map +1 -1
  3. package/dist/builders/BuilderForm.d.ts +22 -1
  4. package/dist/builders/BuilderForm.d.ts.map +1 -1
  5. package/dist/builders/index.d.ts +1 -1
  6. package/dist/builders/index.d.ts.map +1 -1
  7. package/dist/composites/decision-card/resolver.cjs +289 -13
  8. package/dist/composites/decision-card/resolver.cjs.map +1 -1
  9. package/dist/composites/decision-card/resolver.d.ts +2 -1
  10. package/dist/composites/decision-card/resolver.d.ts.map +1 -1
  11. package/dist/composites/decision-card/resolver.js +289 -13
  12. package/dist/composites/decision-card/resolver.js.map +1 -1
  13. package/dist/composites/document-field-extraction/resolver.cjs +1920 -0
  14. package/dist/composites/document-field-extraction/resolver.cjs.map +1 -0
  15. package/dist/composites/document-field-extraction/resolver.js +1913 -0
  16. package/dist/composites/document-field-extraction/resolver.js.map +1 -0
  17. package/dist/composites/tabby-auth/resolver.cjs +597 -0
  18. package/dist/composites/tabby-auth/resolver.cjs.map +1 -0
  19. package/dist/composites/tabby-auth/resolver.d.ts +3 -0
  20. package/dist/composites/tabby-auth/resolver.d.ts.map +1 -0
  21. package/dist/composites/tabby-auth/resolver.js +595 -0
  22. package/dist/composites/tabby-auth/resolver.js.map +1 -0
  23. package/dist/composites/workflow-stepper/resolver.cjs +86 -18
  24. package/dist/composites/workflow-stepper/resolver.cjs.map +1 -1
  25. package/dist/composites/workflow-stepper/resolver.d.ts.map +1 -1
  26. package/dist/composites/workflow-stepper/resolver.js +86 -18
  27. package/dist/composites/workflow-stepper/resolver.js.map +1 -1
  28. package/dist/index.cjs +901 -63
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.js +901 -63
  31. package/dist/index.js.map +1 -1
  32. package/dist/renderer.cjs +810 -45
  33. package/dist/renderer.cjs.map +1 -1
  34. package/dist/renderer.js +810 -45
  35. package/dist/renderer.js.map +1 -1
  36. package/dist/resolver.cjs +810 -45
  37. package/dist/resolver.cjs.map +1 -1
  38. package/dist/resolver.d.ts.map +1 -1
  39. package/dist/resolver.js +810 -45
  40. package/dist/resolver.js.map +1 -1
  41. package/dist/schemas/decision-card.d.ts +37 -0
  42. package/dist/schemas/decision-card.d.ts.map +1 -1
  43. package/dist/schemas/index.cjs +113 -8
  44. package/dist/schemas/index.cjs.map +1 -1
  45. package/dist/schemas/index.d.ts +155 -0
  46. package/dist/schemas/index.d.ts.map +1 -1
  47. package/dist/schemas/index.js +113 -8
  48. package/dist/schemas/index.js.map +1 -1
  49. package/dist/schemas/tabby-auth.d.ts +58 -0
  50. package/dist/schemas/tabby-auth.d.ts.map +1 -0
  51. package/dist/schemas/workflow-stepper.d.ts +60 -0
  52. package/dist/schemas/workflow-stepper.d.ts.map +1 -1
  53. package/dist/tool-definitions.json +135 -4
  54. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ import { z } from "zod";
2
+ export declare const tabbyAuthSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"tabby-auth">;
4
+ app: z.ZodString;
5
+ url: z.ZodString;
6
+ workspace: z.ZodOptional<z.ZodString>;
7
+ state: z.ZodOptional<z.ZodEnum<{
8
+ pending: "pending";
9
+ connected: "connected";
10
+ }>>;
11
+ ctaLabel: z.ZodOptional<z.ZodString>;
12
+ steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ iconUrl: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export declare const tabbyAuthTool: {
17
+ name: string;
18
+ description: string;
19
+ input_schema: {
20
+ type: "object";
21
+ properties: {
22
+ type: {
23
+ type: string;
24
+ enum: string[];
25
+ };
26
+ app: {
27
+ type: string;
28
+ };
29
+ url: {
30
+ type: string;
31
+ };
32
+ workspace: {
33
+ type: string;
34
+ };
35
+ state: {
36
+ type: string;
37
+ enum: string[];
38
+ };
39
+ ctaLabel: {
40
+ type: string;
41
+ };
42
+ steps: {
43
+ type: string;
44
+ items: {
45
+ type: string;
46
+ };
47
+ };
48
+ description: {
49
+ type: string;
50
+ };
51
+ iconUrl: {
52
+ type: string;
53
+ };
54
+ };
55
+ required: string[];
56
+ };
57
+ };
58
+ //# sourceMappingURL=tabby-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabby-auth.d.ts","sourceRoot":"","sources":["../../src/schemas/tabby-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;iBAU1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBzB,CAAC"}
@@ -16,9 +16,29 @@ export declare const workflowStepperSchema: z.ZodObject<{
16
16
  active: "active";
17
17
  done: "done";
18
18
  blocked: "blocked";
19
+ running: "running";
19
20
  failed: "failed";
20
21
  review: "review";
21
22
  }>;
23
+ eval: z.ZodOptional<z.ZodObject<{
24
+ score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ verdict: z.ZodOptional<z.ZodEnum<{
26
+ good: "good";
27
+ bad: "bad";
28
+ }>>;
29
+ reasoning: z.ZodOptional<z.ZodString>;
30
+ judge_ok: z.ZodOptional<z.ZodBoolean>;
31
+ data_quality_flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
+ field: z.ZodOptional<z.ZodString>;
33
+ issue: z.ZodOptional<z.ZodString>;
34
+ severity: z.ZodOptional<z.ZodEnum<{
35
+ high: "high";
36
+ medium: "medium";
37
+ low: "low";
38
+ }>>;
39
+ details: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>>>;
41
+ }, z.core.$strip>>;
22
42
  assignees: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
43
  name: z.ZodString;
24
44
  kind: z.ZodEnum<{
@@ -86,6 +106,46 @@ export declare const workflowStepperTool: {
86
106
  type: string;
87
107
  enum: string[];
88
108
  };
109
+ eval: {
110
+ type: string;
111
+ description: string;
112
+ properties: {
113
+ score: {
114
+ type: string;
115
+ };
116
+ verdict: {
117
+ type: string;
118
+ enum: string[];
119
+ };
120
+ reasoning: {
121
+ type: string;
122
+ };
123
+ judge_ok: {
124
+ type: string;
125
+ };
126
+ data_quality_flags: {
127
+ type: string;
128
+ items: {
129
+ type: string;
130
+ properties: {
131
+ field: {
132
+ type: string;
133
+ };
134
+ issue: {
135
+ type: string;
136
+ };
137
+ severity: {
138
+ type: string;
139
+ enum: string[];
140
+ };
141
+ details: {
142
+ type: string;
143
+ };
144
+ };
145
+ };
146
+ };
147
+ };
148
+ };
89
149
  assignees: {
90
150
  type: string;
91
151
  maxItems: number;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-stepper.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-stepper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C/B,CAAC"}
1
+ {"version":3,"file":"workflow-stepper.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-stepper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsDhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwE/B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "0.1.58",
3
- "generated_at": "2026-06-24T15:47:16.404Z",
4
- "schema_count": 59,
2
+ "version": "0.1.60",
3
+ "generated_at": "2026-07-02T18:39:37.597Z",
4
+ "schema_count": 60,
5
5
  "schemas": {
6
6
  "data-table": {
7
7
  "name": "render_data_table",
@@ -4683,12 +4683,60 @@
4683
4683
  "enum": [
4684
4684
  "done",
4685
4685
  "active",
4686
+ "running",
4686
4687
  "review",
4687
4688
  "pending",
4688
4689
  "blocked",
4689
4690
  "failed"
4690
4691
  ]
4691
4692
  },
4693
+ "eval": {
4694
+ "type": "object",
4695
+ "description": "Optional quality-gate verdict for an executor-run step.",
4696
+ "properties": {
4697
+ "score": {
4698
+ "type": "number"
4699
+ },
4700
+ "verdict": {
4701
+ "type": "string",
4702
+ "enum": [
4703
+ "good",
4704
+ "bad"
4705
+ ]
4706
+ },
4707
+ "reasoning": {
4708
+ "type": "string"
4709
+ },
4710
+ "judge_ok": {
4711
+ "type": "boolean"
4712
+ },
4713
+ "data_quality_flags": {
4714
+ "type": "array",
4715
+ "items": {
4716
+ "type": "object",
4717
+ "properties": {
4718
+ "field": {
4719
+ "type": "string"
4720
+ },
4721
+ "issue": {
4722
+ "type": "string"
4723
+ },
4724
+ "severity": {
4725
+ "type": "string",
4726
+ "enum": [
4727
+ "low",
4728
+ "medium",
4729
+ "high"
4730
+ ]
4731
+ },
4732
+ "details": {
4733
+ "type": "string"
4734
+ }
4735
+ }
4736
+ }
4737
+ }
4738
+ }
4739
+ },
4692
4740
  "assignees": {
4693
4741
  "type": "array",
4694
4742
  "maxItems": 6,
@@ -5041,7 +5089,7 @@
5041
5089
  "type": "array",
5042
5090
  "minItems": 1,
5043
5091
  "maxItems": 5,
5044
- "description": "Mutually-exclusive resolution choices; mark one `recommended` to make it primary",
5092
+ "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]}) — the card then lets the user fine-tune the number within that range before confirming.",
5045
5093
  "items": {
5046
5094
  "type": "object",
5047
5095
  "properties": {
@@ -5053,6 +5101,34 @@
5053
5101
  },
5054
5102
  "recommended": {
5055
5103
  "type": "boolean"
5104
+ },
5105
+ "value": {
5106
+ "type": "number",
5107
+ "description": "Suggested numeric figure for this option (the starting point of the adjuster)"
5108
+ },
5109
+ "adjust": {
5110
+ "type": "object",
5111
+ "description": "Allow the user to tune `value` within this inclusive range before resolving",
5112
+ "properties": {
5113
+ "min": {
5114
+ "type": "number"
5115
+ },
5116
+ "max": {
5117
+ "type": "number"
5118
+ },
5119
+ "step": {
5120
+ "type": "number",
5121
+ "description": "Increment granularity; defaults to a sensible step for the range"
5122
+ },
5123
+ "unit": {
5124
+ "type": "string",
5125
+ "description": "Short unit suffix shown after the number, e.g. 'units', '%', 'hrs'"
5126
+ }
5127
+ },
5128
+ "required": [
5129
+ "min",
5130
+ "max"
5131
+ ]
5056
5132
  }
5057
5133
  },
5058
5134
  "required": [
@@ -5078,6 +5154,10 @@
5078
5154
  "properties": {
5079
5155
  "option": {
5080
5156
  "type": "string"
5157
+ },
5158
+ "value": {
5159
+ "type": "number",
5160
+ "description": "Adjusted figure the user confirmed, when the option was adjustable"
5081
5161
  }
5082
5162
  },
5083
5163
  "required": [
@@ -5092,6 +5172,57 @@
5092
5172
  "options"
5093
5173
  ]
5094
5174
  }
5175
+ },
5176
+ "tabby-auth": {
5177
+ "name": "render_tabby_auth",
5178
+ "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} · {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 — never supplied here.",
5179
+ "input_schema": {
5180
+ "type": "object",
5181
+ "properties": {
5182
+ "type": {
5183
+ "type": "string",
5184
+ "enum": [
5185
+ "tabby-auth"
5186
+ ]
5187
+ },
5188
+ "app": {
5189
+ "type": "string"
5190
+ },
5191
+ "url": {
5192
+ "type": "string"
5193
+ },
5194
+ "workspace": {
5195
+ "type": "string"
5196
+ },
5197
+ "state": {
5198
+ "type": "string",
5199
+ "enum": [
5200
+ "pending",
5201
+ "connected"
5202
+ ]
5203
+ },
5204
+ "ctaLabel": {
5205
+ "type": "string"
5206
+ },
5207
+ "steps": {
5208
+ "type": "array",
5209
+ "items": {
5210
+ "type": "string"
5211
+ }
5212
+ },
5213
+ "description": {
5214
+ "type": "string"
5215
+ },
5216
+ "iconUrl": {
5217
+ "type": "string"
5218
+ }
5219
+ },
5220
+ "required": [
5221
+ "type",
5222
+ "app",
5223
+ "url"
5224
+ ]
5225
+ }
5095
5226
  }
5096
5227
  }
5097
5228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adoptai/genui-components",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "Schema-driven generative UI components for Adopt agents",
5
5
  "private": false,
6
6
  "license": "UNLICENSED",