Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/docs-sync/edit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
* wall-clock budget is recorded as action "pending" so the watermark holds
* back and the next run re-collects those PRs.
*
* Env: EDIT_MODEL (provider/model), KILO_API_KEY + KILO_ORG_ID (set by workflow; read natively by the kilo provider).
* Env: EDIT_MODEL (provider/model), DOCS_SYNC_VARIANT (reasoning effort, default max),
* KILO_API_KEY + KILO_ORG_ID (set by workflow; read natively by the kilo provider).
* Budgets: EDIT_BUDGET_MINUTES (default 50), EDIT_BATCH_TIMEOUT_MINUTES (default 15).
* Test hook: DOCS_SYNC_BACKOFF_MS replaces every retry wait when set.
*/

import fs from "node:fs"
import path from "node:path"
import { fileURLToPath } from "node:url"
import { backoffMsForAttempt, deadline, remainingMs, runKilo, sleepSync } from "./lib.mjs"
import { backoffMsForAttempt, deadline, remainingMs, REASONING_VARIANT, runKilo, sleepSync } from "./lib.mjs"
import { readLearningsBlock } from "./learn.mjs"

const BATCH_SIZE = 5
Expand Down Expand Up @@ -89,7 +90,7 @@ Batch specifics for this run: the PRs to handle are in the attached ${batchFile}
"-m",
model,
"--variant",
"high",
REASONING_VARIANT,
"--dir",
process.cwd(),
"-f",
Expand Down
Loading
Loading