Amend plan Task 9/10: PM_LANGFLOW_API_KEY is Credential and gets upserted in build_flows
This commit is contained in:
@@ -1901,7 +1901,7 @@ cd /home/lwc/bin && git add projekt-matching && git commit -m "feat(projekt-matc
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: `projektmatch.stages`, `projektmatch.ingest`, `projektmatch.config.Cfg` (deployed at `/app/langflow/projektmatch` inside the container, Task 10).
|
||||
- Produces: seven Langflow `Component` classes. Class names / output names are consumed by `build_flows.py` (Task 10): every component has exactly one output named `out`, method `build_out`. Global-variable names referenced via `load_from_db`: `PM_IMAP_PASSWORD`, `PM_ESPO_API_KEY` (Credential); `PM_ESPO_BASE`, `PM_NOTIFY_TO`, `PM_ALERT_TO`, `PM_THRESHOLD`, `PM_VLLM_BASE`, `PM_VLLM_MODEL`, `PM_FLOW2_ID`, `PM_LANGFLOW_API_KEY` (Generic).
|
||||
- Produces: seven Langflow `Component` classes. Class names / output names are consumed by `build_flows.py` (Task 10): every component has exactly one output named `out`, method `build_out`. Global-variable names referenced via `load_from_db`: `PM_IMAP_PASSWORD`, `PM_ESPO_API_KEY`, `PM_LANGFLOW_API_KEY` (Credential, SecretStrInput); `PM_ESPO_BASE`, `PM_NOTIFY_TO`, `PM_ALERT_TO`, `PM_THRESHOLD`, `PM_VLLM_BASE`, `PM_VLLM_MODEL`, `PM_FLOW2_ID` (Generic, MessageTextInput).
|
||||
- No host-side unit tests (wrappers only; logic is tested in Tasks 2–8). Verified live in Task 10 Step 6 and Task 13.
|
||||
|
||||
- [ ] **Step 1: Write `components/pm_fetch.py`**
|
||||
@@ -2375,6 +2375,9 @@ def main():
|
||||
if name != "PM_FLOW2_ID":
|
||||
upsert_variable(hdr, name, value, "Generic")
|
||||
api_key = get_api_key(hdr)
|
||||
# PMIngest reads the run-API key via load_from_db -> must exist as a
|
||||
# Credential global variable, not only in the host env file.
|
||||
upsert_variable(hdr, "PM_LANGFLOW_API_KEY", api_key, "Credential")
|
||||
|
||||
def custom(fname):
|
||||
code = (COMPONENTS / fname).read_text()
|
||||
|
||||
Reference in New Issue
Block a user