wisp-schema 1.21.1 → 1.22.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e88afcd1f36a33edacd0157245307550d71e1d67b7f96ea276ba9b5667037ed
4
- data.tar.gz: 43ea0f5cb7061d3211f80ae435abd0d2579cbfff30e7469c06d26aecebd6fce3
3
+ metadata.gz: 1f5d06194f3cd51dd93b54bdd5e73fd5ea0c153669f93e96c866b2e8cb13b8d2
4
+ data.tar.gz: d2221a591fe9dab1172f4bbcc7ae082f120602762dfabfc4a494cd8bc31e5b78
5
5
  SHA512:
6
- metadata.gz: 5c820f5b973bd37dc9268187fd226cd3079b961167ee561649151e3eab24f63de010f20b72248bfbdfc6c4a7e7b4a057360eb835d48488819fe99dbfc39b1587
7
- data.tar.gz: 7bea9e2afc0b51a32760abdfb57d77e4e0293a901ca20cc138d3b435c3dd99dd1ac84401e211b32accfdbd11e00242b6b6cf4e6fc898f7c1d66d1c0c626dd300
6
+ metadata.gz: 7f0fdbc4a454bc849aa59e8d17bdaf0abb04909fde4f08ef499576029c1fe786a86f742abdfe6c12c3961e810f3730f86f4d44685d7a5d1a5b6c298d71d72b00
7
+ data.tar.gz: 003d6782448553a4b028e48c67404580ed832d63f845d93c67dea9794b09f455eb3a0de3a2053def9676869d21be938a3d9d2befc3f061afeb5f944f8a8b27c0
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = "1.21.1"
5
- STABLE_VERSION = "1.21.1"
4
+ VERSION = "1.22.1"
5
+ STABLE_VERSION = "1.22.1"
6
6
  end
data/lib/wisp-schema.rb CHANGED
@@ -31,6 +31,7 @@ module Wisp
31
31
  "scroll",
32
32
  "select",
33
33
  "send_key",
34
+ "snippet",
34
35
  "store_value",
35
36
  "tester_confirmation",
36
37
  "tester_instruction",
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "action_type": "action",
5
+ "title": "Snippet",
6
+ "description": "Contains a set of actions. They can be regenerated if self-healing is on and a prompt exists",
7
+ "properties": {
8
+ "action": { "enum": ["snippet"] },
9
+ "execution_mode": { "enum": ["run", "generate"] },
10
+ "id": { "title": "Action ID", "type": "integer" },
11
+ "uniform_id": { "title": "Preserved Action ID", "type": "string" },
12
+ "job_step_id": { "title": "The id of the action's related job step", "type": "integer" },
13
+ "delay_after": { "title": "Delay after in seconds", "type": "integer" },
14
+ "prompt": { "title": "The text used to regenerate the steps", "type": "string" },
15
+ "verbs": {
16
+ "title": "Verbs",
17
+ "$ref": "../verbs_for_execution.json"
18
+ },
19
+ "version": { "type": "string", "title": "Version" }
20
+ },
21
+ "additionalProperties": false,
22
+ "required": ["action", "verbs", "execution_mode"]
23
+ }
data/stable/verbs.json CHANGED
@@ -7,27 +7,28 @@
7
7
  "oneOf": [
8
8
  {"$ref": "actions/ai_confirmation.json"},
9
9
  {"$ref": "actions/click.json"},
10
+ {"$ref": "actions/close_tab.json"},
10
11
  {"$ref": "actions/comment.json"},
11
12
  {"$ref": "actions/conditional_observe.json"},
12
13
  {"$ref": "actions/double_click.json"},
13
- {"$ref": "actions/triple_click.json"},
14
+ {"$ref": "actions/download_file.json"},
15
+ {"$ref": "actions/drag_and_drop.json"},
14
16
  {"$ref": "actions/fill.json"},
15
17
  {"$ref": "actions/generate_steps.json"},
16
- {"$ref": "actions/type.json"},
17
- {"$ref": "actions/send_key.json"},
18
18
  {"$ref": "actions/hover.json"},
19
- {"$ref": "actions/select.json"},
20
- {"$ref": "actions/refresh.json"},
21
19
  {"$ref": "actions/navigate.json"},
22
- {"$ref": "actions/close_tab.json"},
23
- {"$ref": "actions/scroll.json"},
24
- {"$ref": "actions/wait.json"},
25
- {"$ref": "actions/drag_and_drop.json"},
26
- {"$ref": "actions/tester_instruction.json"},
27
20
  {"$ref": "actions/observe.json"},
21
+ {"$ref": "actions/refresh.json"},
22
+ {"$ref": "actions/scroll.json"},
23
+ {"$ref": "actions/select.json"},
24
+ {"$ref": "actions/send_key.json"},
25
+ {"$ref": "actions/snippet.json"},
28
26
  {"$ref": "actions/store_value.json"},
29
- {"$ref": "actions/download_file.json"},
30
27
  {"$ref": "actions/tester_confirmation.json"},
28
+ {"$ref": "actions/tester_instruction.json"},
29
+ {"$ref": "actions/triple_click.json"},
30
+ {"$ref": "actions/type.json"},
31
+ {"$ref": "actions/wait.json"},
31
32
  {"$ref": "embeddings/embedded_test.json"}
32
33
  ]
33
34
  }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "array",
4
+ "title": "Verbs for execution",
5
+ "items": {
6
+ "title": "Wisp Verb for execution",
7
+ "oneOf": [
8
+ {"$ref": "actions/ai_confirmation.json"},
9
+ {"$ref": "actions/click.json"},
10
+ {"$ref": "actions/close_tab.json"},
11
+ {"$ref": "actions/comment.json"},
12
+ {"$ref": "actions/conditional_observe.json"},
13
+ {"$ref": "actions/double_click.json"},
14
+ {"$ref": "actions/download_file.json"},
15
+ {"$ref": "actions/drag_and_drop.json"},
16
+ {"$ref": "actions/fill.json"},
17
+ {"$ref": "actions/hover.json"},
18
+ {"$ref": "actions/navigate.json"},
19
+ {"$ref": "actions/observe.json"},
20
+ {"$ref": "actions/refresh.json"},
21
+ {"$ref": "actions/scroll.json"},
22
+ {"$ref": "actions/select.json"},
23
+ {"$ref": "actions/send_key.json"},
24
+ {"$ref": "actions/snippet.json"},
25
+ {"$ref": "actions/store_value.json"},
26
+ {"$ref": "actions/tester_confirmation.json"},
27
+ {"$ref": "actions/tester_instruction.json"},
28
+ {"$ref": "actions/triple_click.json"},
29
+ {"$ref": "actions/type.json"},
30
+ {"$ref": "actions/wait.json"}
31
+ ]
32
+ }
33
+ }
data/wisp.json CHANGED
@@ -150,28 +150,57 @@
150
150
  "oneOf": [
151
151
  {"$ref": "#/definitions/ai_confirmation"},
152
152
  {"$ref": "#/definitions/click"},
153
+ {"$ref": "#/definitions/close_tab"},
153
154
  {"$ref": "#/definitions/comment"},
154
155
  {"$ref": "#/definitions/conditional_observe"},
155
156
  {"$ref": "#/definitions/double_click"},
156
- {"$ref": "#/definitions/triple_click"},
157
+ {"$ref": "#/definitions/download_file"},
158
+ {"$ref": "#/definitions/drag_and_drop"},
159
+ {"$ref": "#/definitions/embedded_test"},
157
160
  {"$ref": "#/definitions/fill"},
158
161
  {"$ref": "#/definitions/generate_steps"},
159
- {"$ref": "#/definitions/type"},
160
- {"$ref": "#/definitions/send_key"},
161
162
  {"$ref": "#/definitions/hover"},
162
- {"$ref": "#/definitions/select"},
163
- {"$ref": "#/definitions/refresh"},
164
163
  {"$ref": "#/definitions/navigate"},
165
- {"$ref": "#/definitions/close_tab"},
164
+ {"$ref": "#/definitions/observe"},
165
+ {"$ref": "#/definitions/refresh"},
166
166
  {"$ref": "#/definitions/scroll"},
167
- {"$ref": "#/definitions/wait"},
168
- {"$ref": "#/definitions/drag_and_drop"},
167
+ {"$ref": "#/definitions/select"},
168
+ {"$ref": "#/definitions/send_key"},
169
+ {"$ref": "#/definitions/snippet"},
170
+ {"$ref": "#/definitions/store_value"},
171
+ {"$ref": "#/definitions/tester_confirmation"},
169
172
  {"$ref": "#/definitions/tester_instruction"},
170
- {"$ref": "#/definitions/embedded_test"},
173
+ {"$ref": "#/definitions/triple_click"},
174
+ {"$ref": "#/definitions/type"},
175
+ {"$ref": "#/definitions/wait"}
176
+ ]
177
+ },
178
+ "verb_for_execution": {
179
+ "title": "Wisp Verb for execution",
180
+ "oneOf": [
181
+ {"$ref": "#/definitions/ai_confirmation"},
182
+ {"$ref": "#/definitions/click"},
183
+ {"$ref": "#/definitions/close_tab"},
184
+ {"$ref": "#/definitions/comment"},
185
+ {"$ref": "#/definitions/conditional_observe"},
186
+ {"$ref": "#/definitions/double_click"},
187
+ {"$ref": "#/definitions/download_file"},
188
+ {"$ref": "#/definitions/drag_and_drop"},
189
+ {"$ref": "#/definitions/fill"},
190
+ {"$ref": "#/definitions/hover"},
191
+ {"$ref": "#/definitions/navigate"},
171
192
  {"$ref": "#/definitions/observe"},
193
+ {"$ref": "#/definitions/refresh"},
194
+ {"$ref": "#/definitions/scroll"},
195
+ {"$ref": "#/definitions/select"},
196
+ {"$ref": "#/definitions/send_key"},
197
+ {"$ref": "#/definitions/snippet"},
172
198
  {"$ref": "#/definitions/store_value"},
173
- {"$ref": "#/definitions/download_file"},
174
- {"$ref": "#/definitions/tester_confirmation"}
199
+ {"$ref": "#/definitions/tester_confirmation"},
200
+ {"$ref": "#/definitions/tester_instruction"},
201
+ {"$ref": "#/definitions/triple_click"},
202
+ {"$ref": "#/definitions/type"},
203
+ {"$ref": "#/definitions/wait"}
175
204
  ]
176
205
  },
177
206
  "ai_confirmation": {
@@ -462,6 +491,32 @@
462
491
  "additionalProperties": false,
463
492
  "required": ["verbs"]
464
493
  },
494
+ "snippet": {
495
+ "type": "object",
496
+ "action_type": "action",
497
+ "title": "Snippet",
498
+ "description": "Contains a set of actions. They can be regenerated if self-healing is on and a prompt exists",
499
+ "properties": {
500
+ "action": { "enum": ["snippet"] },
501
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
502
+ "execution_mode": { "enum": ["run", "generate"] },
503
+ "id": { "title": "Action ID", "type": "integer" },
504
+ "uniform_id": { "title": "Preserved Action ID", "type": "string" },
505
+ "job_step_id": { "title": "The id of the action's related job step", "type": "integer" },
506
+ "delay_after": { "title": "Delay after in seconds", "type": "integer" },
507
+ "prompt": { "title": "The text used to regenerate the steps", "type": "string" },
508
+ "verbs": {
509
+ "type": "array",
510
+ "title": "Verbs",
511
+ "items": {
512
+ "$ref": "#/definitions/verb_for_execution"
513
+ }
514
+ },
515
+ "version": { "type": "string", "title": "Version" }
516
+ },
517
+ "additionalProperties": false,
518
+ "required": ["action", "steps", "execution_mode"]
519
+ },
465
520
  "type": {
466
521
  "type": "object",
467
522
  "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.21.1
4
+ version: 1.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
@@ -95,6 +95,7 @@ files:
95
95
  - stable/actions/scroll.json
96
96
  - stable/actions/select.json
97
97
  - stable/actions/send_key.json
98
+ - stable/actions/snippet.json
98
99
  - stable/actions/store_value.json
99
100
  - stable/actions/tester_confirmation.json
100
101
  - stable/actions/tester_instruction.json
@@ -106,6 +107,7 @@ files:
106
107
  - stable/blocks/generated_steps_block.json
107
108
  - stable/embeddings/embedded_test.json
108
109
  - stable/verbs.json
110
+ - stable/verbs_for_execution.json
109
111
  - wisp.json
110
112
  homepage: https://github.com/rainforestapp/wisp
111
113
  licenses: