wisp-schema 1.6.0 → 1.7.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: f951c7c703e9cb92701bd9be75a87a7c217090d06ce7a7faafe4ab6a2cd48b94
4
+ data.tar.gz: 0c8d3b49d67ece5f2620ef278578c395133bff5480d45fda760e9ac2e51e97ca
5
5
  SHA512:
6
- metadata.gz: 3d2cf5614513e79c496e67f77fdc841f83bd60267355d4d406eb76f269344beb2e14048bc61d40adeee13ec927f2b7dfa72e6c1fdb269d1cce338a192ce32bc8
7
- data.tar.gz: f88b2ff72660c9b1925f2d731e4cba52363d18490ae2112dee0895e6acde01a490a2803a7d42794cf46c2d8ab86391d2d2eb0998ac998785f155edbc810bdb5b
6
+ metadata.gz: 62ce800a08f8849c68129f2f5d43bfc8e134aad7c3a839a30ce6a0ca0e685608a8118e94b41041415349c633933b8451b3bc908f0f1469272c39d08eba5f6b62
7
+ data.tar.gz: c85b5f0f7ec39f1dda8dc3bc0a4a41f30b91c9aad95e2e9118af464eec989dee40ff225aec3b357a6adf989a02ccc6ff6a148c27da846cbd4afa4c0e0ef3d2cf
data/canary-wisp.json CHANGED
@@ -61,6 +61,7 @@
61
61
  "verb": {
62
62
  "title": "Wisp Verb",
63
63
  "oneOf": [
64
+ {"$ref": "#/definitions/ai_confirmation"},
64
65
  {"$ref": "#/definitions/click"},
65
66
  {"$ref": "#/definitions/comment"},
66
67
  {"$ref": "#/definitions/double_click"},
@@ -81,6 +82,27 @@
81
82
  {"$ref": "#/definitions/tester_confirmation"}
82
83
  ]
83
84
  },
85
+ "ai_confirmation": {
86
+ "type": "object",
87
+ "action_type": "assertion",
88
+ "title": "AI Confirmation",
89
+ "description": "A Yes (pass) or No (fail) question answered by AI",
90
+ "properties": {
91
+ "action": {
92
+ "enum": ["ai_confirmation"]
93
+ },
94
+ "id": {"title": "Action ID", "type": "integer"},
95
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
96
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
97
+ "question": {"title": "Question for the AI", "type": "string"},
98
+ "version": {
99
+ "type": "string",
100
+ "title": "Version"
101
+ }
102
+ },
103
+ "additionalProperties": false,
104
+ "required": ["action", "question"]
105
+ },
84
106
  "click": {
85
107
  "type": "object",
86
108
  "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'
4
+ VERSION = '1.7.0'
5
+ STABLE_VERSION = '1.7.0'
6
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",
@@ -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
@@ -61,6 +61,7 @@
61
61
  "verb": {
62
62
  "title": "Wisp Verb",
63
63
  "oneOf": [
64
+ {"$ref": "#/definitions/ai_confirmation"},
64
65
  {"$ref": "#/definitions/click"},
65
66
  {"$ref": "#/definitions/comment"},
66
67
  {"$ref": "#/definitions/double_click"},
@@ -81,6 +82,27 @@
81
82
  {"$ref": "#/definitions/tester_confirmation"}
82
83
  ]
83
84
  },
85
+ "ai_confirmation": {
86
+ "type": "object",
87
+ "action_type": "assertion",
88
+ "title": "AI Confirmation",
89
+ "description": "A Yes (pass) or No (fail) question answered by AI",
90
+ "properties": {
91
+ "action": {
92
+ "enum": ["ai_confirmation"]
93
+ },
94
+ "id": {"title": "Action ID", "type": "integer"},
95
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
96
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
97
+ "question": {"title": "Question for the AI", "type": "string"},
98
+ "version": {
99
+ "type": "string",
100
+ "title": "Version"
101
+ }
102
+ },
103
+ "additionalProperties": false,
104
+ "required": ["action", "question"]
105
+ },
84
106
  "click": {
85
107
  "type": "object",
86
108
  "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.7.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