bitfab 0.67.1 → 0.67.2
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 +4 -4
- data/lib/bitfab/scenarios.rb +12 -0
- data/lib/bitfab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9203bc60384eda942ef67d9bb7ade8292bbc8baeab9ef77c50801e108cd46cad
|
|
4
|
+
data.tar.gz: 2030fe0eb8ff537c2c7f0b95f87f8ee36a06b73f7241b83e3536b77f93b1a5d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8ac643cd49dbe9dbdfb58df58352c0121e7e1d8cbb749f8dd5273dd15f71cac6559903c4f375e36359b41bb93bfe24bdb446a4e59258c99efcef744cf7fa81d
|
|
7
|
+
data.tar.gz: 8900f91b90dd241d8a3fd2602853ae45467a89dfa8835b60cda7c6f98126a276d477b742084eb7abc9c27d05fc9afd553397ab9e977d33f0cc38c8464e76878b
|
data/lib/bitfab/scenarios.rb
CHANGED
|
@@ -13,6 +13,18 @@ module Bitfab
|
|
|
13
13
|
@http_client.get(scenario_path(trace_id))["scenario"]
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
# Starts building the scenario for trace_id and returns at once, without waiting for it. Read it later with
|
|
17
|
+
# get_scenario. Returns {"status", "traceId", "scenarioId"}: "status" is "started" while Bitfab builds it in the
|
|
18
|
+
# background, or "already_generated" when the trace already has a scenario, which is left as it is and named by
|
|
19
|
+
# "scenarioId". "scenarioId" is nil while the trace has no scenario yet.
|
|
20
|
+
#
|
|
21
|
+
# A replay, a trace outside the organization, or a trace Bitfab cannot build a scenario for (not
|
|
22
|
+
# noah-agent-turn and no scenario callback) raises an error. Adding a trace to a dataset starts the same build
|
|
23
|
+
# only when the organization has a scenario callback.
|
|
24
|
+
def generate_scenario(trace_id)
|
|
25
|
+
@http_client.request("#{scenario_path(trace_id)}/generate", {})["generation"]
|
|
26
|
+
end
|
|
27
|
+
|
|
16
28
|
# Updates the scenario built from trace_id and returns the saved hash.
|
|
17
29
|
#
|
|
18
30
|
# name:, description:, trigger:, and data: each replace the saved value whole. Keywords left out are kept.
|
data/lib/bitfab/version.rb
CHANGED