wisp-schema 1.6.0 → 1.8.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: 889ffc5bfb0f47725ebef8153f0b171575d04ae9aedb2fac9f318bd90c53c384
4
- data.tar.gz: 0f853a006b3585f4dbc9ec8915064c34d3cbe6d35ca19b8d49a3ead995cd769d
3
+ metadata.gz: cdd4e75996e7381f94fb24c2f94ef7fc3dd7ab991365ed88e700926c5f2d925e
4
+ data.tar.gz: d4ab320ceac39cad91a0904422bc5f50b375fd2ab705616d9dae8f532b263b01
5
5
  SHA512:
6
- metadata.gz: 3d2cf5614513e79c496e67f77fdc841f83bd60267355d4d406eb76f269344beb2e14048bc61d40adeee13ec927f2b7dfa72e6c1fdb269d1cce338a192ce32bc8
7
- data.tar.gz: f88b2ff72660c9b1925f2d731e4cba52363d18490ae2112dee0895e6acde01a490a2803a7d42794cf46c2d8ab86391d2d2eb0998ac998785f155edbc810bdb5b
6
+ metadata.gz: 65c701710cb9344a7151e2e1429b2e9229d96468f329b0b706ec1e38213b6b67b8762ad35d12184978612fb13c136e7757b0f2b790ed0ac3f16aa5c197ed8847
7
+ data.tar.gz: 0b9b3d11b4b135dead07af17c7fb0b88e2aeb473424518fa53ba373ed5c1aa638107adde93d9848e48c5babca725317237240c9f985866199b9047c444345ba2
data/canary-nouns.json CHANGED
@@ -33,6 +33,21 @@
33
33
  "w": {"type": "integer"},
34
34
  "h": {"type": "integer"}
35
35
  }
36
+ },
37
+ "masks": {
38
+ "type": "array",
39
+ "title": "Mask collection",
40
+ "description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
41
+ "items": {
42
+ "type": "object",
43
+ "title": "Mask",
44
+ "properties": {
45
+ "x": {"type": "integer"},
46
+ "y": {"type": "integer"},
47
+ "w": {"type": "integer"},
48
+ "h": {"type": "integer"}
49
+ }
50
+ }
36
51
  }
37
52
  },
38
53
  "additionalProperties": false,
data/canary-wisp.json CHANGED
@@ -40,6 +40,21 @@
40
40
  "w": {"type": "integer"},
41
41
  "h": {"type": "integer"}
42
42
  }
43
+ },
44
+ "masks": {
45
+ "type": "array",
46
+ "title": "Mask collection",
47
+ "description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
48
+ "items": {
49
+ "type": "object",
50
+ "title": "Mask",
51
+ "properties": {
52
+ "x": {"type": "integer"},
53
+ "y": {"type": "integer"},
54
+ "w": {"type": "integer"},
55
+ "h": {"type": "integer"}
56
+ }
57
+ }
43
58
  }
44
59
  },
45
60
  "additionalProperties": false,
@@ -61,6 +76,7 @@
61
76
  "verb": {
62
77
  "title": "Wisp Verb",
63
78
  "oneOf": [
79
+ {"$ref": "#/definitions/ai_confirmation"},
64
80
  {"$ref": "#/definitions/click"},
65
81
  {"$ref": "#/definitions/comment"},
66
82
  {"$ref": "#/definitions/double_click"},
@@ -81,6 +97,27 @@
81
97
  {"$ref": "#/definitions/tester_confirmation"}
82
98
  ]
83
99
  },
100
+ "ai_confirmation": {
101
+ "type": "object",
102
+ "action_type": "assertion",
103
+ "title": "AI Confirmation",
104
+ "description": "A Yes (pass) or No (fail) question answered by AI",
105
+ "properties": {
106
+ "action": {
107
+ "enum": ["ai_confirmation"]
108
+ },
109
+ "id": {"title": "Action ID", "type": "integer"},
110
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
111
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
112
+ "question": {"title": "Question for the AI", "type": "string"},
113
+ "version": {
114
+ "type": "string",
115
+ "title": "Version"
116
+ }
117
+ },
118
+ "additionalProperties": false,
119
+ "required": ["action", "question"]
120
+ },
84
121
  "click": {
85
122
  "type": "object",
86
123
  "action_type": "action",
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '1.6.0'
5
- STABLE_VERSION = '1.6.0'
6
- CANARY_VERSION = '2.0.0'
4
+ VERSION = "1.8.0"
5
+ STABLE_VERSION = "1.8.0"
6
+ CANARY_VERSION = "2.0.0"
7
7
  end
data/lib/wisp-schema.rb CHANGED
@@ -14,6 +14,7 @@ module Wisp
14
14
  CANARY_NOUNS_PATH = File.expand_path('../canary-nouns.json', __dir__)
15
15
 
16
16
  ACTIONS = [
17
+ "ai_confirmation",
17
18
  "click",
18
19
  "close_tab",
19
20
  "comment",
data/nouns.json CHANGED
@@ -33,6 +33,21 @@
33
33
  "w": {"type": "integer"},
34
34
  "h": {"type": "integer"}
35
35
  }
36
+ },
37
+ "masks": {
38
+ "type": "array",
39
+ "title": "Mask collection",
40
+ "description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
41
+ "items": {
42
+ "type": "object",
43
+ "title": "Mask",
44
+ "properties": {
45
+ "x": {"type": "integer"},
46
+ "y": {"type": "integer"},
47
+ "w": {"type": "integer"},
48
+ "h": {"type": "integer"}
49
+ }
50
+ }
36
51
  }
37
52
  },
38
53
  "additionalProperties": false,
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "action_type": "assertion",
5
+ "title": "AI Confirmation",
6
+ "description": "A Yes (pass) or No (fail) question answered by AI",
7
+ "properties": {
8
+ "action": {
9
+ "enum": ["ai_confirmation"]
10
+ },
11
+ "id": {"title": "Action ID", "type": "integer"},
12
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
13
+ "question": {"title": "Question for the AI", "type": "string"},
14
+ "version": {
15
+ "type": "string",
16
+ "title": "Version"
17
+ }
18
+ },
19
+ "additionalProperties": false,
20
+ "required": ["action", "question"]
21
+ }
data/wisp.json CHANGED
@@ -40,6 +40,21 @@
40
40
  "w": {"type": "integer"},
41
41
  "h": {"type": "integer"}
42
42
  }
43
+ },
44
+ "masks": {
45
+ "type": "array",
46
+ "title": "Mask collection",
47
+ "description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
48
+ "items": {
49
+ "type": "object",
50
+ "title": "Mask",
51
+ "properties": {
52
+ "x": {"type": "integer"},
53
+ "y": {"type": "integer"},
54
+ "w": {"type": "integer"},
55
+ "h": {"type": "integer"}
56
+ }
57
+ }
43
58
  }
44
59
  },
45
60
  "additionalProperties": false,
@@ -61,6 +76,7 @@
61
76
  "verb": {
62
77
  "title": "Wisp Verb",
63
78
  "oneOf": [
79
+ {"$ref": "#/definitions/ai_confirmation"},
64
80
  {"$ref": "#/definitions/click"},
65
81
  {"$ref": "#/definitions/comment"},
66
82
  {"$ref": "#/definitions/double_click"},
@@ -81,6 +97,27 @@
81
97
  {"$ref": "#/definitions/tester_confirmation"}
82
98
  ]
83
99
  },
100
+ "ai_confirmation": {
101
+ "type": "object",
102
+ "action_type": "assertion",
103
+ "title": "AI Confirmation",
104
+ "description": "A Yes (pass) or No (fail) question answered by AI",
105
+ "properties": {
106
+ "action": {
107
+ "enum": ["ai_confirmation"]
108
+ },
109
+ "id": {"title": "Action ID", "type": "integer"},
110
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
111
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
112
+ "question": {"title": "Question for the AI", "type": "string"},
113
+ "version": {
114
+ "type": "string",
115
+ "title": "Version"
116
+ }
117
+ },
118
+ "additionalProperties": false,
119
+ "required": ["action", "question"]
120
+ },
84
121
  "click": {
85
122
  "type": "object",
86
123
  "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.6.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
@@ -51,6 +51,7 @@ files:
51
51
  - lib/version.rb
52
52
  - lib/wisp-schema.rb
53
53
  - nouns.json
54
+ - stable/actions/ai_confirmation.json
54
55
  - stable/actions/click.json
55
56
  - stable/actions/close_tab.json
56
57
  - stable/actions/comment.json