Compare commits
1 commit
b289a0dba3
...
7f68812a96
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f68812a96 |
1 changed files with 3 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ resolve_agent_identity() {
|
||||||
|
|
||||||
# ensure_profile_repo [AGENT_IDENTITY]
|
# ensure_profile_repo [AGENT_IDENTITY]
|
||||||
# Clones or pulls the agent's .profile repo to a local cache dir.
|
# Clones or pulls the agent's .profile repo to a local cache dir.
|
||||||
# Requires: FORGE_TOKEN, FORGE_URL, FORGE_REPO (to derive .profile repo slug).
|
# Requires: FORGE_TOKEN, FORGE_URL.
|
||||||
# Exports PROFILE_REPO_PATH (local cache path) and PROFILE_FORMULA_PATH.
|
# Exports PROFILE_REPO_PATH (local cache path) and PROFILE_FORMULA_PATH.
|
||||||
# Returns 0 on success, 1 on failure (falls back gracefully).
|
# Returns 0 on success, 1 on failure (falls back gracefully).
|
||||||
ensure_profile_repo() {
|
ensure_profile_repo() {
|
||||||
|
|
@ -90,6 +90,7 @@ ensure_profile_repo() {
|
||||||
log "WARNING: cannot resolve agent identity, skipping .profile repo"
|
log "WARNING: cannot resolve agent identity, skipping .profile repo"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
agent_identity="$AGENT_IDENTITY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define cache directory: /home/agent/data/.profile/{agent-name}
|
# Define cache directory: /home/agent/data/.profile/{agent-name}
|
||||||
|
|
@ -173,7 +174,7 @@ load_formula_or_profile() {
|
||||||
FORMULA_SOURCE="formulas/"
|
FORMULA_SOURCE="formulas/"
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
log "ERROR: formula not found in .profile and fallback not specified: $fallback_formula"
|
log "ERROR: formula not found in .profile and fallback file not found: $fallback_formula"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue