@adoptai/genui-components 0.1.59 → 0.1.61

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 (45) 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 +296 -17
  8. package/dist/composites/decision-card/resolver.cjs.map +1 -1
  9. package/dist/composites/decision-card/resolver.d.ts +9 -2
  10. package/dist/composites/decision-card/resolver.d.ts.map +1 -1
  11. package/dist/composites/decision-card/resolver.js +296 -18
  12. package/dist/composites/decision-card/resolver.js.map +1 -1
  13. package/dist/composites/decision-queue/resolver.d.ts +22 -0
  14. package/dist/composites/decision-queue/resolver.d.ts.map +1 -0
  15. package/dist/composites/workflow-stepper/resolver.cjs +2 -1
  16. package/dist/composites/workflow-stepper/resolver.cjs.map +1 -1
  17. package/dist/composites/workflow-stepper/resolver.js +2 -1
  18. package/dist/composites/workflow-stepper/resolver.js.map +1 -1
  19. package/dist/index.cjs +881 -46
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.js +881 -46
  22. package/dist/index.js.map +1 -1
  23. package/dist/renderer.cjs +790 -28
  24. package/dist/renderer.cjs.map +1 -1
  25. package/dist/renderer.js +790 -28
  26. package/dist/renderer.js.map +1 -1
  27. package/dist/resolver.cjs +790 -28
  28. package/dist/resolver.cjs.map +1 -1
  29. package/dist/resolver.d.ts.map +1 -1
  30. package/dist/resolver.js +790 -28
  31. package/dist/resolver.js.map +1 -1
  32. package/dist/schemas/decision-card.d.ts +37 -0
  33. package/dist/schemas/decision-card.d.ts.map +1 -1
  34. package/dist/schemas/decision-queue.d.ts +227 -0
  35. package/dist/schemas/decision-queue.d.ts.map +1 -0
  36. package/dist/schemas/index.cjs +191 -5
  37. package/dist/schemas/index.cjs.map +1 -1
  38. package/dist/schemas/index.d.ts +264 -0
  39. package/dist/schemas/index.d.ts.map +1 -1
  40. package/dist/schemas/index.js +191 -5
  41. package/dist/schemas/index.js.map +1 -1
  42. package/dist/shared/InteractionContext.d.ts +10 -0
  43. package/dist/shared/InteractionContext.d.ts.map +1 -1
  44. package/dist/tool-definitions.json +236 -4
  45. package/package.json +1 -1
@@ -19,6 +19,16 @@ export interface GenUIInteraction {
19
19
  url?: string;
20
20
  label?: string;
21
21
  }) => void;
22
+ /** Host callback when a decision-queue is submitted: the structured batch
23
+ * plus the ready-to-send numbered `message` (one reply for all N judgments).
24
+ * The host should also mark `resolvedDecisions[queueId]` so the queue stays
25
+ * locked across re-renders within the session. */
26
+ onDecisionQueueSubmit?: (queueId: string, decisions: Array<{
27
+ id?: string;
28
+ title: string;
29
+ option: string;
30
+ value?: number;
31
+ }>, message: string) => void;
22
32
  }
23
33
  export declare const DEFAULT_INTERACTION: GenUIInteraction;
24
34
  export interface GenUIInteractionProviderProps {
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionContext.d.ts","sourceRoot":"","sources":["../../src/shared/InteractionContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C;gEAC4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAA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M,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAChF,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;CACX;AAED,eAAO,MAAM,mBAAmB,EAAE,gBAOjC,CAAC;AAIF,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,wBAAwB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,6BAA6B,2CAM1F;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD"}
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "0.1.59",
3
- "generated_at": "2026-06-29T12:53:38.720Z",
4
- "schema_count": 60,
2
+ "version": "0.1.61",
3
+ "generated_at": "2026-07-02T19:25:11.622Z",
4
+ "schema_count": 61,
5
5
  "schemas": {
6
6
  "data-table": {
7
7
  "name": "render_data_table",
@@ -5089,7 +5089,7 @@
5089
5089
  "type": "array",
5090
5090
  "minItems": 1,
5091
5091
  "maxItems": 5,
5092
- "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.",
5093
5093
  "items": {
5094
5094
  "type": "object",
5095
5095
  "properties": {
@@ -5101,6 +5101,34 @@
5101
5101
  },
5102
5102
  "recommended": {
5103
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
+ ]
5104
5132
  }
5105
5133
  },
5106
5134
  "required": [
@@ -5126,6 +5154,10 @@
5126
5154
  "properties": {
5127
5155
  "option": {
5128
5156
  "type": "string"
5157
+ },
5158
+ "value": {
5159
+ "type": "number",
5160
+ "description": "Adjusted figure the user confirmed, when the option was adjustable"
5129
5161
  }
5130
5162
  },
5131
5163
  "required": [
@@ -5141,6 +5173,206 @@
5141
5173
  ]
5142
5174
  }
5143
5175
  },
5176
+ "decision-queue": {
5177
+ "name": "render_decision_queue",
5178
+ "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 — 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.",
5179
+ "input_schema": {
5180
+ "type": "object",
5181
+ "properties": {
5182
+ "type": {
5183
+ "type": "string",
5184
+ "enum": [
5185
+ "decision-queue"
5186
+ ]
5187
+ },
5188
+ "id": {
5189
+ "type": "string",
5190
+ "description": "Stable id for update-in-place rendering"
5191
+ },
5192
+ "title": {
5193
+ "type": "string",
5194
+ "description": "Batch headline shown in the header, e.g. 'Reconciliation exceptions'"
5195
+ },
5196
+ "description": {
5197
+ "type": "string",
5198
+ "description": "One-line context above the queue"
5199
+ },
5200
+ "submit_label": {
5201
+ "type": "string",
5202
+ "description": "CTA label; defaults to 'Submit N decisions'"
5203
+ },
5204
+ "items": {
5205
+ "type": "array",
5206
+ "minItems": 2,
5207
+ "maxItems": 12,
5208
+ "description": "The pending judgments, in the order the user should take them. Each is a full decision-card body (no `type`).",
5209
+ "items": {
5210
+ "type": "object",
5211
+ "properties": {
5212
+ "id": {
5213
+ "type": "string"
5214
+ },
5215
+ "decision_type": {
5216
+ "type": "string",
5217
+ "description": "Short category eyebrow, e.g. 'Duplicate', 'Capitalization'"
5218
+ },
5219
+ "title": {
5220
+ "type": "string"
5221
+ },
5222
+ "question": {
5223
+ "type": "string"
5224
+ },
5225
+ "amount": {
5226
+ "type": "number"
5227
+ },
5228
+ "currency": {
5229
+ "type": "string"
5230
+ },
5231
+ "amount_label": {
5232
+ "type": "string"
5233
+ },
5234
+ "severity": {
5235
+ "type": "string",
5236
+ "enum": [
5237
+ "low",
5238
+ "medium",
5239
+ "high"
5240
+ ]
5241
+ },
5242
+ "flags": {
5243
+ "type": "array",
5244
+ "maxItems": 6,
5245
+ "items": {
5246
+ "type": "object",
5247
+ "properties": {
5248
+ "field": {
5249
+ "type": "string"
5250
+ },
5251
+ "issue": {
5252
+ "type": "string"
5253
+ },
5254
+ "severity": {
5255
+ "type": "string",
5256
+ "enum": [
5257
+ "low",
5258
+ "medium",
5259
+ "high"
5260
+ ]
5261
+ }
5262
+ },
5263
+ "required": [
5264
+ "issue"
5265
+ ]
5266
+ }
5267
+ },
5268
+ "options": {
5269
+ "type": "array",
5270
+ "minItems": 1,
5271
+ "maxItems": 5,
5272
+ "items": {
5273
+ "type": "object",
5274
+ "properties": {
5275
+ "id": {
5276
+ "type": "string"
5277
+ },
5278
+ "label": {
5279
+ "type": "string"
5280
+ },
5281
+ "recommended": {
5282
+ "type": "boolean"
5283
+ },
5284
+ "value": {
5285
+ "type": "number",
5286
+ "description": "Suggested numeric figure for this option (starting point of the adjuster)"
5287
+ },
5288
+ "adjust": {
5289
+ "type": "object",
5290
+ "description": "Allow the user to tune `value` within this inclusive range before deciding",
5291
+ "properties": {
5292
+ "min": {
5293
+ "type": "number"
5294
+ },
5295
+ "max": {
5296
+ "type": "number"
5297
+ },
5298
+ "step": {
5299
+ "type": "number"
5300
+ },
5301
+ "unit": {
5302
+ "type": "string",
5303
+ "description": "Short unit suffix, e.g. 'units', '%', 'hrs'"
5304
+ }
5305
+ },
5306
+ "required": [
5307
+ "min",
5308
+ "max"
5309
+ ]
5310
+ }
5311
+ },
5312
+ "required": [
5313
+ "label"
5314
+ ]
5315
+ }
5316
+ },
5317
+ "source": {
5318
+ "type": "object",
5319
+ "properties": {
5320
+ "label": {
5321
+ "type": "string"
5322
+ },
5323
+ "url": {
5324
+ "type": "string"
5325
+ }
5326
+ }
5327
+ }
5328
+ },
5329
+ "required": [
5330
+ "title",
5331
+ "question",
5332
+ "options"
5333
+ ]
5334
+ }
5335
+ },
5336
+ "resolved": {
5337
+ "type": "object",
5338
+ "description": "Pre-resolved state for transcript replay",
5339
+ "properties": {
5340
+ "decisions": {
5341
+ "type": "array",
5342
+ "items": {
5343
+ "type": "object",
5344
+ "properties": {
5345
+ "id": {
5346
+ "type": "string"
5347
+ },
5348
+ "title": {
5349
+ "type": "string"
5350
+ },
5351
+ "option": {
5352
+ "type": "string"
5353
+ },
5354
+ "value": {
5355
+ "type": "number"
5356
+ }
5357
+ },
5358
+ "required": [
5359
+ "title",
5360
+ "option"
5361
+ ]
5362
+ }
5363
+ }
5364
+ },
5365
+ "required": [
5366
+ "decisions"
5367
+ ]
5368
+ }
5369
+ },
5370
+ "required": [
5371
+ "type",
5372
+ "items"
5373
+ ]
5374
+ }
5375
+ },
5144
5376
  "tabby-auth": {
5145
5377
  "name": "render_tabby_auth",
5146
5378
  "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.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adoptai/genui-components",
3
- "version": "0.1.59",
3
+ "version": "0.1.61",
4
4
  "description": "Schema-driven generative UI components for Adopt agents",
5
5
  "private": false,
6
6
  "license": "UNLICENSED",