@beryl-so/cli 0.54.1 → 0.61.0

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.
@@ -22,7 +22,9 @@ export const ACTION_PLAN_SCHEMA = {
22
22
  "dialog",
23
23
  "switch_tab",
24
24
  "close_tab",
25
- "drag"
25
+ "drag",
26
+ "third_party_authorize",
27
+ "await_third_party"
26
28
  ],
27
29
  "title": "ActionType",
28
30
  "type": "string"
@@ -446,6 +448,54 @@ export const ACTION_PLAN_SCHEMA = {
446
448
  ]
447
449
  }
448
450
  },
451
+ {
452
+ "if": {
453
+ "properties": {
454
+ "action": {
455
+ "const": "third_party_authorize"
456
+ }
457
+ },
458
+ "required": [
459
+ "action"
460
+ ]
461
+ },
462
+ "then": {
463
+ "properties": {
464
+ "provider": {
465
+ "not": {
466
+ "type": "null"
467
+ }
468
+ }
469
+ },
470
+ "required": [
471
+ "provider"
472
+ ]
473
+ }
474
+ },
475
+ {
476
+ "if": {
477
+ "properties": {
478
+ "action": {
479
+ "const": "await_third_party"
480
+ }
481
+ },
482
+ "required": [
483
+ "action"
484
+ ]
485
+ },
486
+ "then": {
487
+ "properties": {
488
+ "provider": {
489
+ "not": {
490
+ "type": "null"
491
+ }
492
+ }
493
+ },
494
+ "required": [
495
+ "provider"
496
+ ]
497
+ }
498
+ },
449
499
  {
450
500
  "if": {
451
501
  "properties": {
@@ -901,6 +951,25 @@ export const ACTION_PLAN_SCHEMA = {
901
951
  "selector"
902
952
  ]
903
953
  }
954
+ },
955
+ {
956
+ "if": {
957
+ "properties": {
958
+ "action": {
959
+ "const": "await_email"
960
+ }
961
+ },
962
+ "required": [
963
+ "action"
964
+ ]
965
+ },
966
+ "then": {
967
+ "properties": {
968
+ "wait_s": {
969
+ "maximum": 50
970
+ }
971
+ }
972
+ }
904
973
  }
905
974
  ],
906
975
  "properties": {
@@ -1096,6 +1165,17 @@ export const ACTION_PLAN_SCHEMA = {
1096
1165
  "title": "Optional",
1097
1166
  "type": "boolean"
1098
1167
  },
1168
+ "provider": {
1169
+ "anyOf": [
1170
+ {
1171
+ "$ref": "#/$defs/ThirdPartyProvider"
1172
+ },
1173
+ {
1174
+ "type": "null"
1175
+ }
1176
+ ],
1177
+ "default": null
1178
+ },
1099
1179
  "selector": {
1100
1180
  "anyOf": [
1101
1181
  {
@@ -1164,7 +1244,7 @@ export const ACTION_PLAN_SCHEMA = {
1164
1244
  "wait_s": {
1165
1245
  "anyOf": [
1166
1246
  {
1167
- "maximum": 50,
1247
+ "maximum": 600,
1168
1248
  "minimum": 1,
1169
1249
  "type": "integer"
1170
1250
  },
@@ -1181,6 +1261,13 @@ export const ACTION_PLAN_SCHEMA = {
1181
1261
  ],
1182
1262
  "title": "PlanStep",
1183
1263
  "type": "object"
1264
+ },
1265
+ "ThirdPartyProvider": {
1266
+ "enum": [
1267
+ "slack"
1268
+ ],
1269
+ "title": "ThirdPartyProvider",
1270
+ "type": "string"
1184
1271
  }
1185
1272
  },
1186
1273
  "$id": "https://api.beryl.so/api/v1/schemas/action-plan.schema.json",
@@ -1344,6 +1431,14 @@ export const ACTION_PLAN_SCHEMA = {
1344
1431
  "minItems": 1,
1345
1432
  "title": "Steps",
1346
1433
  "type": "array"
1434
+ },
1435
+ "third_party_integrations": {
1436
+ "description": "Providers whose consent page this test approves; the browser then carries Beryl's login for them. Declare exactly the providers of its third_party_authorize steps.",
1437
+ "items": {
1438
+ "$ref": "#/$defs/ThirdPartyProvider"
1439
+ },
1440
+ "title": "Third Party Integrations",
1441
+ "type": "array"
1347
1442
  }
1348
1443
  },
1349
1444
  "required": [
@@ -36,6 +36,8 @@ export const ACTION_DOCS = {
36
36
  switch_tab: "Make another open tab the active page; `value` picks it — see below",
37
37
  close_tab: "Close the active tab (optional `value` picks one) and fall back to the previous",
38
38
  drag: "Drag the `selector` element onto the `value` TARGET selector",
39
+ third_party_authorize: "Approve the `provider` install on its consent page as Beryl's account (cloud only, see third party integration tests)",
40
+ await_third_party: "Wait for the connected app's message on Beryl's `provider` account (cloud only)",
39
41
  };
40
42
  export const EXPECT_DOCS = {
41
43
  visible: "The element is visible",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beryl-so/cli",
3
- "version": "0.54.1",
3
+ "version": "0.61.0",
4
4
  "description": "Beryl on the command line: projects, runs, the exploring agent, and an MCP server over the same commands.",
5
5
  "license": "MIT",
6
6
  "type": "module",