feat(worker): EOC push-agent for ops summary

- Add EOC_URL + EOC_PUSH_TOKEN config
- Add pushOpsSummaryToEoc processor
- Schedule PUSH_OPS_SUMMARY_TO_EOC every 2 minutes
- Add unit tests
This commit is contained in:
Sven (AAMOS AI)
2026-08-11 17:03:53 +07:00
parent 4eddcfbefe
commit af05f084b8
4 changed files with 140 additions and 0 deletions
+5
View File
@@ -55,6 +55,11 @@ const configSchema = z.object({
/** Strong, rotated ops token for /ops/v1/summary. Set via SSM in production. */
OPS_TOKEN: z.string().min(1).default("dev-ops-token-change-me"),
/** EOC base URL for outbound ops-summary push. Empty = push disabled. */
EOC_URL: z.string().url().optional(),
/** EOC ingest bearer token for this app. Set via SSM in production. */
EOC_PUSH_TOKEN: z.string().min(1).optional(),
APP_STORE_MODE: z.enum(["production", "sandbox"]).default("sandbox"),
EMAIL_MODE: z.enum(["log", "smtp"]).default("log"),
SMTP_HOST: z.string().default(""),