@osfactory/har 0.32.0 → 0.32.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.
- package/dist/templates/har-boilerplate/STAGES.md +3 -1
- package/dist/templates/har-boilerplate-cli/STAGES.md +3 -1
- package/dist/templates/har-boilerplate-ios/STAGES.md +3 -1
- package/dist/templates/plugins/custom-stage-skeleton.sh +2 -0
- package/dist/templates/plugins/playwright/.har/stages/browser-e2e.sh +2 -0
- package/dist/templates/plugins/rocketsim/.har/stages/rocketsim-flows.sh +2 -0
- package/package.json +1 -1
|
@@ -57,7 +57,9 @@ then implement the TODO block in `.har/stages/db-integrity.sh`.
|
|
|
57
57
|
|
|
58
58
|
Every script under `.har/stages/` must:
|
|
59
59
|
|
|
60
|
-
1. Source `harness.env` and `agent-slot.sh` from `.har/`.
|
|
60
|
+
1. Source `harness.env` and `agent-slot.sh` from `.har/`. Before sourcing,
|
|
61
|
+
set `SCRIPT_DIR` to the `.har/` directory (not `stages/`) — `agent-slot.sh`
|
|
62
|
+
resolves the slot registry via `$SCRIPT_DIR/slots/...`.
|
|
61
63
|
2. Take the agent slot id as `$1` (validate with `validate_agent_id`); extra
|
|
62
64
|
args may follow.
|
|
63
65
|
3. Load the slot env via `resolve_agent_env_file` and run checks from the
|
|
@@ -57,7 +57,9 @@ then implement the TODO block in `.har/stages/db-integrity.sh`.
|
|
|
57
57
|
|
|
58
58
|
Every script under `.har/stages/` must:
|
|
59
59
|
|
|
60
|
-
1. Source `harness.env` and `agent-slot.sh` from `.har/`.
|
|
60
|
+
1. Source `harness.env` and `agent-slot.sh` from `.har/`. Before sourcing,
|
|
61
|
+
set `SCRIPT_DIR` to the `.har/` directory (not `stages/`) — `agent-slot.sh`
|
|
62
|
+
resolves the slot registry via `$SCRIPT_DIR/slots/...`.
|
|
61
63
|
2. Take the agent slot id as `$1` (validate with `validate_agent_id`); extra
|
|
62
64
|
args may follow.
|
|
63
65
|
3. Load the slot env via `resolve_agent_env_file` and run checks from the
|
|
@@ -57,7 +57,9 @@ then implement the TODO block in `.har/stages/db-integrity.sh`.
|
|
|
57
57
|
|
|
58
58
|
Every script under `.har/stages/` must:
|
|
59
59
|
|
|
60
|
-
1. Source `harness.env` and `agent-slot.sh` from `.har/`.
|
|
60
|
+
1. Source `harness.env` and `agent-slot.sh` from `.har/`. Before sourcing,
|
|
61
|
+
set `SCRIPT_DIR` to the `.har/` directory (not `stages/`) — `agent-slot.sh`
|
|
62
|
+
resolves the slot registry via `$SCRIPT_DIR/slots/...`.
|
|
61
63
|
2. Take the agent slot id as `$1` (validate with `validate_agent_id`); extra
|
|
62
64
|
args may follow.
|
|
63
65
|
3. Load the slot env via `resolve_agent_env_file` and run checks from the
|
|
@@ -15,6 +15,8 @@ set -euo pipefail
|
|
|
15
15
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
16
16
|
HARNESS_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
17
17
|
REPO_ROOT="$(cd "$HARNESS_DIR/.." && pwd)"
|
|
18
|
+
# agent-slot.sh expects SCRIPT_DIR to be .har/ (slot registry lives there)
|
|
19
|
+
SCRIPT_DIR="$HARNESS_DIR"
|
|
18
20
|
|
|
19
21
|
# shellcheck source=/dev/null
|
|
20
22
|
source "$HARNESS_DIR/harness.env"
|
|
@@ -9,6 +9,8 @@ set -euo pipefail
|
|
|
9
9
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
10
10
|
HARNESS_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
11
11
|
REPO_ROOT="$(cd "$HARNESS_DIR/.." && pwd)"
|
|
12
|
+
# agent-slot.sh expects SCRIPT_DIR to be .har/ (slot registry lives there)
|
|
13
|
+
SCRIPT_DIR="$HARNESS_DIR"
|
|
12
14
|
|
|
13
15
|
# shellcheck source=/dev/null
|
|
14
16
|
source "$HARNESS_DIR/harness.env"
|
|
@@ -13,6 +13,8 @@ set -euo pipefail
|
|
|
13
13
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
14
14
|
HARNESS_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
15
15
|
REPO_ROOT="$(cd "$HARNESS_DIR/.." && pwd)"
|
|
16
|
+
# agent-slot.sh expects SCRIPT_DIR to be .har/ (slot registry lives there)
|
|
17
|
+
SCRIPT_DIR="$HARNESS_DIR"
|
|
16
18
|
|
|
17
19
|
# shellcheck source=/dev/null
|
|
18
20
|
source "$HARNESS_DIR/harness.env"
|