@osfactory/har 0.11.0 → 0.12.0
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.
|
@@ -273,6 +273,17 @@ har_regenerate_agent_env_file() {
|
|
|
273
273
|
REPO_ROOT="$work_dir" \
|
|
274
274
|
envsubst '${AGENT_ID} ${API_PORT} ${FE_PORT} ${DEBUG_PORT} ${DB_PORT} ${MINIO_PORT} ${BROWSER_PORT} ${REPO_ROOT}' \
|
|
275
275
|
< "$template" > "$env_file"
|
|
276
|
+
if command -v har >/dev/null 2>&1; then
|
|
277
|
+
har telemetry write-env \
|
|
278
|
+
--agent-id "$agent_id" \
|
|
279
|
+
--repo "${HARNESS_ROOT:-$REPO_ROOT}" \
|
|
280
|
+
--env-file "$env_file" \
|
|
281
|
+
--work-dir "$work_dir" \
|
|
282
|
+
${SLOT_BRANCH:+--branch "$SLOT_BRANCH"} \
|
|
283
|
+
${SLOT_SUFFIX:+--suffix "$SLOT_SUFFIX"} \
|
|
284
|
+
${SLOT_PURPOSE:+--purpose "$SLOT_PURPOSE"} \
|
|
285
|
+
>/dev/null 2>&1 || true
|
|
286
|
+
fi
|
|
276
287
|
}
|
|
277
288
|
|
|
278
289
|
# har_launch_preflight <agent_id> <force> <replace> [resume]
|
|
@@ -304,7 +304,8 @@ if [ "$USE_CLAUDE" = true ]; then
|
|
|
304
304
|
if tmux has-session -t "$TMUX_SESSION" 2>/dev/null; then
|
|
305
305
|
tmux kill-session -t "$TMUX_SESSION"
|
|
306
306
|
fi
|
|
307
|
-
tmux new-session -d -s "$TMUX_SESSION" -c "$WORK_DIR"
|
|
307
|
+
tmux new-session -d -s "$TMUX_SESSION" -c "$WORK_DIR" \
|
|
308
|
+
"set -a; [ -f '$ENV_FILE' ] && . '$ENV_FILE'; set +a; exec claude"
|
|
308
309
|
log "Claude session: tmux attach -t $TMUX_SESSION"
|
|
309
310
|
fi
|
|
310
311
|
|
|
@@ -248,15 +248,26 @@ har_regenerate_agent_env_file() {
|
|
|
248
248
|
REPO_ROOT="$work_dir" \
|
|
249
249
|
envsubst '${AGENT_ID} ${API_PORT} ${FE_PORT} ${DEBUG_PORT} ${DB_PORT} ${MINIO_PORT} ${BROWSER_PORT} ${REPO_ROOT}' \
|
|
250
250
|
< "$template" > "$env_file"
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
cat > "$env_file" <<EOF
|
|
251
|
+
else
|
|
252
|
+
cat > "$env_file" <<EOF
|
|
254
253
|
# Agent environment — generated by launch.sh
|
|
255
254
|
AGENT_ID=${agent_id}
|
|
256
255
|
REPO_ROOT=${work_dir}
|
|
257
256
|
WORKTREE_DIR=${worktree_dir}
|
|
258
257
|
NODE_ENV=test
|
|
259
258
|
EOF
|
|
259
|
+
fi
|
|
260
|
+
if command -v har >/dev/null 2>&1; then
|
|
261
|
+
har telemetry write-env \
|
|
262
|
+
--agent-id "$agent_id" \
|
|
263
|
+
--repo "${HARNESS_ROOT:-$REPO_ROOT}" \
|
|
264
|
+
--env-file "$env_file" \
|
|
265
|
+
--work-dir "$work_dir" \
|
|
266
|
+
${SLOT_BRANCH:+--branch "$SLOT_BRANCH"} \
|
|
267
|
+
${SLOT_SUFFIX:+--suffix "$SLOT_SUFFIX"} \
|
|
268
|
+
${SLOT_PURPOSE:+--purpose "$SLOT_PURPOSE"} \
|
|
269
|
+
>/dev/null 2>&1 || true
|
|
270
|
+
fi
|
|
260
271
|
}
|
|
261
272
|
|
|
262
273
|
har_launch_preflight() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osfactory/har",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "LLM-powered CLI for reproducible agent development environments",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"har",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"type": "git",
|
|
68
68
|
"url": "https://github.com/os-factory/har"
|
|
69
69
|
},
|
|
70
|
-
"homepage": "https://
|
|
70
|
+
"homepage": "https://harproject.cloud/",
|
|
71
71
|
"bugs": "https://github.com/os-factory/har/issues",
|
|
72
72
|
"author": "Antoine Frau",
|
|
73
73
|
"license": "AGPL-3.0-only",
|