@osfactory/har 0.32.0 → 0.32.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.
package/dist/index.js CHANGED
@@ -6718,11 +6718,7 @@ function buildOtelHooksConfig(options) {
6718
6718
  function writeOtelHooksConfig(config2, hooksHome = getOtelHooksHome()) {
6719
6719
  fs42.mkdirSync(hooksHome, { recursive: true });
6720
6720
  const configPath = getOtelHooksConfigPath(hooksHome);
6721
- const payload = {
6722
- _comment: "Managed by har telemetry \u2014 do not edit by hand; use: har telemetry on|off",
6723
- ...config2
6724
- };
6725
- fs42.writeFileSync(configPath, `${JSON.stringify(payload, null, 2)}
6721
+ fs42.writeFileSync(configPath, `${JSON.stringify(config2, null, 2)}
6726
6722
  `);
6727
6723
  return configPath;
6728
6724
  }
@@ -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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osfactory/har",
3
- "version": "0.32.0",
3
+ "version": "0.32.2",
4
4
  "description": "LLM-powered CLI for reproducible agent development environments",
5
5
  "keywords": [
6
6
  "har",