wisp-schema 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7ef6b2bae7200a7aa9056e77c17e1216020c3d1f65d63fb27810a47f8a5214f
4
- data.tar.gz: 49ffaebf52458fb9416619181df055791c534d95a8b27b32b9c81301ecff4c0f
3
+ metadata.gz: f58616e2f3f9b6ad4f4b76d2bc6e2aef91d47a6df521e7604e43d4b73cc10b69
4
+ data.tar.gz: daabbd65953eaed99ad3bf059968540b5fa97551368aeaf054abfa16e19849e1
5
5
  SHA512:
6
- metadata.gz: 01e7574242de0b93c774c422994125184bbe740c1b358655b131c8354ff39b87e4563835bc07b82f73e4a61ddec3794f61e9ce4aaf26606f1edc172bd0a41a8c
7
- data.tar.gz: b788c5c26b2cf71b635b299cbad40213148f038790a49885265c9f9e6bb754f77598f6823088beaddb523c3a367c450c5b7be51ac53d35a34de592ff65824a18
6
+ metadata.gz: d79ce4a1ed221a68d91db314bb28443d13582766ce15982a5901468f8b2ca5c567e4f4c95fb1dc01cd411171519136e8aa8c091cf391bb369d8529d398f74299
7
+ data.tar.gz: 3bc2893651c1c4ac050e28c95fc5e2c76146b256b51a7c0e64b1c5e7ed0de2a0f9b52ee2055efbf49d180aa4de060af34cef34adec2ebc53d5d35e7f9bc38fd3
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = "1.17.0"
5
- STABLE_VERSION = "1.17.0"
4
+ VERSION = "1.18.0"
5
+ STABLE_VERSION = "1.18.0"
6
6
  end
data/lib/wisp-schema.rb CHANGED
@@ -22,6 +22,7 @@ module Wisp
22
22
  "double_click",
23
23
  "drag_and_drop",
24
24
  "fill",
25
+ "generate_steps",
25
26
  "hover",
26
27
  "navigate",
27
28
  "observe",
@@ -0,0 +1,45 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "action_type": "action",
5
+ "title": "Generate Steps",
6
+ "description": "Generates a set of wisp actions based on the given prompt",
7
+ "properties": {
8
+ "action": {
9
+ "enum": ["generate_steps"]
10
+ },
11
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
12
+ "execution_mode": {
13
+ "enum": ["run", "generate"]
14
+ },
15
+ "id": {"title": "Action ID", "type": "integer"},
16
+ "job_step_id": {
17
+ "title": "The id of the action's related job step",
18
+ "type": "integer"
19
+ },
20
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
21
+ "generated_steps_blocks": {
22
+ "title": "Generated Steps Blocks",
23
+ "type": "object",
24
+ "description": "A list of blocks that each contain steps generated by the action",
25
+ "properties": {
26
+ "steps": {
27
+ "title": "Generated Steps",
28
+ "$ref": "../blocks/generated_steps_block.json"
29
+ }
30
+ },
31
+ "additionalProperties": false,
32
+ "required": ["steps"]
33
+ },
34
+ "prompt": {
35
+ "title": "The text used to generate the steps",
36
+ "type": "text"
37
+ },
38
+ "version": {
39
+ "type": "string",
40
+ "title": "Version"
41
+ }
42
+ },
43
+ "additionalProperties": false,
44
+ "required": ["action", "generated_steps_blocks", "prompt"]
45
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "Generated Steps Block",
5
+ "description": "A block containing the steps generated by the action",
6
+ "properties": {
7
+ "id": {"title": "The generated steps block's id", "type": "integer"},
8
+ "verbs": {
9
+ "title": "Verbs",
10
+ "$ref": "../verbs.json"
11
+ }
12
+ },
13
+ "additionalProperties": false,
14
+ "required": ["verbs"]
15
+ }
data/wisp.json CHANGED
@@ -121,6 +121,7 @@
121
121
  {"$ref": "#/definitions/conditional_observe"},
122
122
  {"$ref": "#/definitions/double_click"},
123
123
  {"$ref": "#/definitions/fill"},
124
+ {"$ref": "#/definitions/generate_steps"},
124
125
  {"$ref": "#/definitions/type"},
125
126
  {"$ref": "#/definitions/send_key"},
126
127
  {"$ref": "#/definitions/hover"},
@@ -331,6 +332,64 @@
331
332
  "additionalProperties": false,
332
333
  "required": ["action", "target", "text"]
333
334
  },
335
+ "generate_steps": {
336
+ "type": "object",
337
+ "action_type": "action",
338
+ "title": "Generate Steps",
339
+ "description": "Generates a set of wisp actions based on the given prompt",
340
+ "properties": {
341
+ "action": {
342
+ "enum": ["generate_steps"]
343
+ },
344
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
345
+ "execution_mode": {
346
+ "enum": ["run", "generate"]
347
+ },
348
+ "id": {"title": "Action ID", "type": "integer"},
349
+ "job_step_id": {
350
+ "title": "The id of the action's related job step",
351
+ "type": "integer"
352
+ },
353
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
354
+ "generated_steps_blocks": {
355
+ "title": "Generated Steps Blocks",
356
+ "type": "object",
357
+ "description": "A list of blocks that each contain steps generated by the action",
358
+ "properties": {
359
+ "steps": {
360
+ "title": "Generated Steps",
361
+ "$ref": "#/definitions/generated_steps_block"
362
+ }
363
+ },
364
+ "additionalProperties": false,
365
+ "required": ["steps"]
366
+ },
367
+ "prompt": {
368
+ "title": "The text used to generate the steps",
369
+ "type": "text"
370
+ },
371
+ "version": {
372
+ "type": "string",
373
+ "title": "Version"
374
+ }
375
+ },
376
+ "additionalProperties": false,
377
+ "required": ["action", "generated_steps_blocks", "prompt"]
378
+ },
379
+ "generated_steps_block": {
380
+ "type": "object",
381
+ "title": "Generated Steps Block",
382
+ "description": "A block containing the steps generated by the action",
383
+ "properties": {
384
+ "id": {"title": "The generated steps block's id", "type": "integer"},
385
+ "verbs": {
386
+ "title": "Verbs",
387
+ "$ref": "#/definitions/verb"
388
+ }
389
+ },
390
+ "additionalProperties": false,
391
+ "required": ["verbs"]
392
+ },
334
393
  "type": {
335
394
  "type": "object",
336
395
  "action_type": "action",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisp-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
@@ -85,6 +85,7 @@ files:
85
85
  - stable/actions/double_click.json
86
86
  - stable/actions/drag_and_drop.json
87
87
  - stable/actions/fill.json
88
+ - stable/actions/generate_steps.json
88
89
  - stable/actions/hover.json
89
90
  - stable/actions/navigate.json
90
91
  - stable/actions/observe.json
@@ -98,6 +99,7 @@ files:
98
99
  - stable/actions/ui_element_reference.json
99
100
  - stable/actions/wait.json
100
101
  - stable/blocks/conditional_block.json
102
+ - stable/blocks/generated_steps_block.json
101
103
  - stable/embeddings/embedded_test.json
102
104
  - stable/verbs.json
103
105
  - wisp.json