@adoptai/genui-components 0.1.60 → 0.1.62

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 (37) hide show
  1. package/dist/composites/decision-card/resolver.cjs +7 -4
  2. package/dist/composites/decision-card/resolver.cjs.map +1 -1
  3. package/dist/composites/decision-card/resolver.d.ts +7 -1
  4. package/dist/composites/decision-card/resolver.d.ts.map +1 -1
  5. package/dist/composites/decision-card/resolver.js +7 -5
  6. package/dist/composites/decision-card/resolver.js.map +1 -1
  7. package/dist/composites/decision-queue/resolver.d.ts +33 -0
  8. package/dist/composites/decision-queue/resolver.d.ts.map +1 -0
  9. package/dist/composites/workflow-stepper/resolver.cjs +2 -1
  10. package/dist/composites/workflow-stepper/resolver.cjs.map +1 -1
  11. package/dist/composites/workflow-stepper/resolver.js +2 -1
  12. package/dist/composites/workflow-stepper/resolver.js.map +1 -1
  13. package/dist/index.cjs +495 -10
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.js +495 -10
  16. package/dist/index.js.map +1 -1
  17. package/dist/renderer.cjs +495 -10
  18. package/dist/renderer.cjs.map +1 -1
  19. package/dist/renderer.js +495 -10
  20. package/dist/renderer.js.map +1 -1
  21. package/dist/resolver.cjs +495 -10
  22. package/dist/resolver.cjs.map +1 -1
  23. package/dist/resolver.d.ts.map +1 -1
  24. package/dist/resolver.js +495 -10
  25. package/dist/resolver.js.map +1 -1
  26. package/dist/schemas/decision-queue.d.ts +227 -0
  27. package/dist/schemas/decision-queue.d.ts.map +1 -0
  28. package/dist/schemas/index.cjs +162 -0
  29. package/dist/schemas/index.cjs.map +1 -1
  30. package/dist/schemas/index.d.ts +227 -0
  31. package/dist/schemas/index.d.ts.map +1 -1
  32. package/dist/schemas/index.js +162 -0
  33. package/dist/schemas/index.js.map +1 -1
  34. package/dist/shared/InteractionContext.d.ts +10 -0
  35. package/dist/shared/InteractionContext.d.ts.map +1 -1
  36. package/dist/tool-definitions.json +203 -3
  37. 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,EAAE,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC5F;AAED,eAAO,MAAM,mBAAmB,EAAE,gBAMjC,CAAC;AAIF,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,S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K,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.60",
3
- "generated_at": "2026-07-02T18:39:37.597Z",
4
- "schema_count": 60,
2
+ "version": "0.1.62",
3
+ "generated_at": "2026-07-03T11:15:59.130Z",
4
+ "schema_count": 61,
5
5
  "schemas": {
6
6
  "data-table": {
7
7
  "name": "render_data_table",
@@ -5173,6 +5173,206 @@
5173
5173
  ]
5174
5174
  }
5175
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
+ },
5176
5376
  "tabby-auth": {
5177
5377
  "name": "render_tabby_auth",
5178
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.60",
3
+ "version": "0.1.62",
4
4
  "description": "Schema-driven generative UI components for Adopt agents",
5
5
  "private": false,
6
6
  "license": "UNLICENSED",