fix: feat(20g): migrate all remaining agents to .profile + remove ops repo journal dirs (#90)
This commit is contained in:
parent
0455040d02
commit
bd0b4cd9bf
3 changed files with 23 additions and 12 deletions
|
|
@ -350,6 +350,17 @@ ${lessons_content}"
|
|||
return 0
|
||||
}
|
||||
|
||||
# formula_prepare_profile_context
|
||||
# Pre-session: loads lessons from .profile repo and sets LESSONS_CONTEXT for prompt injection.
|
||||
# Single shared function to avoid duplicate boilerplate across agent scripts.
|
||||
# Requires: AGENT_IDENTITY, FORGE_TOKEN, FORGE_URL (via profile_load_lessons).
|
||||
# Exports: LESSONS_CONTEXT (set by profile_load_lessons).
|
||||
# Returns 0 on success, 1 if agent has no .profile repo (silent no-op).
|
||||
formula_prepare_profile_context() {
|
||||
profile_load_lessons || true
|
||||
LESSONS_INJECTION="${LESSONS_CONTEXT:-}"
|
||||
}
|
||||
|
||||
# profile_write_journal ISSUE_NUM ISSUE_TITLE OUTCOME [FILES_CHANGED]
|
||||
# Post-session: writes a reflection journal entry after work completes.
|
||||
# Returns 0 on success, 1 on failure.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue